Return empty lists for people instead of throwing

This commit is contained in:
Zoe Roux 2023-03-17 01:25:03 +09:00
parent edf2941e01
commit 9ce8043667

View File

@ -152,7 +152,7 @@ namespace Kyoo.Core.Controllers
Sort<PeopleRole> sort = default,
Pagination limit = default)
{
throw new NotImplementedException();
return Task.FromResult<ICollection<PeopleRole>>(new List<PeopleRole>());
// ICollection<PeopleRole> people = await ApplyFilters(_database.PeopleRoles
// .Where(x => x.ShowID == showID)
// .Include(x => x.People),
@ -173,7 +173,7 @@ namespace Kyoo.Core.Controllers
Sort<PeopleRole> sort = default,
Pagination limit = default)
{
throw new NotImplementedException();
return Task.FromResult<ICollection<PeopleRole>>(new List<PeopleRole>());
// ICollection<PeopleRole> people = await ApplyFilters(_database.PeopleRoles
// .Where(x => x.Show.Slug == showSlug)
// .Include(x => x.People)
@ -196,7 +196,7 @@ namespace Kyoo.Core.Controllers
Sort<PeopleRole> sort = default,
Pagination limit = default)
{
throw new NotImplementedException();
return Task.FromResult<ICollection<PeopleRole>>(new List<PeopleRole>());
// ICollection<PeopleRole> roles = await ApplyFilters(_database.PeopleRoles
// .Where(x => x.PeopleID == id)
// .Include(x => x.Show),
@ -216,7 +216,7 @@ namespace Kyoo.Core.Controllers
Sort<PeopleRole> sort = default,
Pagination limit = default)
{
throw new NotImplementedException();
return Task.FromResult<ICollection<PeopleRole>>(new List<PeopleRole>());
// ICollection<PeopleRole> roles = await ApplyFilters(_database.PeopleRoles
// .Where(x => x.People.Slug == slug)
// .Include(x => x.Show),