mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix warnings
This commit is contained in:
parent
b62af8d2ae
commit
da17fc3e6d
@ -148,7 +148,7 @@ namespace Kyoo.Core.Controllers
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<ICollection<PeopleRole>> GetFromShow(int showID,
|
||||
public Task<ICollection<PeopleRole>> GetFromShow(int showID,
|
||||
Expression<Func<PeopleRole, bool>> where = null,
|
||||
Sort<PeopleRole> sort = default,
|
||||
Pagination limit = default)
|
||||
@ -169,7 +169,7 @@ namespace Kyoo.Core.Controllers
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<ICollection<PeopleRole>> GetFromShow(string showSlug,
|
||||
public Task<ICollection<PeopleRole>> GetFromShow(string showSlug,
|
||||
Expression<Func<PeopleRole, bool>> where = null,
|
||||
Sort<PeopleRole> sort = default,
|
||||
Pagination limit = default)
|
||||
@ -192,7 +192,7 @@ namespace Kyoo.Core.Controllers
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<ICollection<PeopleRole>> GetFromPeople(int id,
|
||||
public Task<ICollection<PeopleRole>> GetFromPeople(int id,
|
||||
Expression<Func<PeopleRole, bool>> where = null,
|
||||
Sort<PeopleRole> sort = default,
|
||||
Pagination limit = default)
|
||||
@ -212,7 +212,7 @@ namespace Kyoo.Core.Controllers
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<ICollection<PeopleRole>> GetFromPeople(string slug,
|
||||
public Task<ICollection<PeopleRole>> GetFromPeople(string slug,
|
||||
Expression<Func<PeopleRole, bool>> where = null,
|
||||
Sort<PeopleRole> sort = default,
|
||||
Pagination limit = default)
|
||||
|
@ -82,19 +82,15 @@ namespace Kyoo.Core.Controllers
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task<ICollection<MetadataID>> GetMetadataID<T>(Expression<Func<MetadataID, bool>> where = null,
|
||||
public async Task<ICollection<MetadataID>> GetMetadataID<T>(Expression<Func<MetadataID, bool>> where = null,
|
||||
Sort<MetadataID> sort = default,
|
||||
Pagination limit = default)
|
||||
where T : class, IMetadata
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
// return ApplyFilters(_database.MetadataIds<T>()
|
||||
// .Include(y => y.Provider),
|
||||
// x => _database.MetadataIds<T>().FirstOrDefaultAsync(y => y.ResourceID == x),
|
||||
// x => x.ResourceID,
|
||||
// where,
|
||||
// sort,
|
||||
// limit);
|
||||
return await _database.MetadataIds<T>()
|
||||
.Include(y => y.Provider)
|
||||
.Where(where)
|
||||
.ToListAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -62,19 +62,19 @@ namespace Kyoo.Core
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public class ServerErrorObjectResult : ObjectResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ServerErrorObjectResult"/> class.
|
||||
/// </summary>
|
||||
/// <param name="value">The object to return.</param>
|
||||
public ServerErrorObjectResult(object value)
|
||||
: base(value)
|
||||
/// <inheritdoc />
|
||||
public class ServerErrorObjectResult : ObjectResult
|
||||
{
|
||||
StatusCode = StatusCodes.Status500InternalServerError;
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ServerErrorObjectResult"/> class.
|
||||
/// </summary>
|
||||
/// <param name="value">The object to return.</param>
|
||||
public ServerErrorObjectResult(object value)
|
||||
: base(value)
|
||||
{
|
||||
StatusCode = StatusCodes.Status500InternalServerError;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user