This commit is contained in:
James Montemagno 2023-01-31 10:51:19 -08:00 коммит произвёл GitHub
Родитель 6ce589389f
Коммит c324a595eb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -41,7 +41,7 @@ public class ShowsService
public async Task<IEnumerable<Show>> GetShowsByCategoryAsync(Guid idCategory) public async Task<IEnumerable<Show>> GetShowsByCategoryAsync(Guid idCategory)
{ {
var result = new List<Show>(); var result = new List<Show>();
var showsResponse = await TryGetAsync<IEnumerable<ShowResponse>>($"shows?limit=10&categoryId={idCategory}"); var showsResponse = await TryGetAsync<IEnumerable<ShowResponse>>($"shows?limit=20&categoryId={idCategory}");
if (showsResponse == null) if (showsResponse == null)
return result; return result;
@ -58,14 +58,14 @@ public class ShowsService
public async Task<IEnumerable<Show>> SearchShowsAsync(Guid idCategory, string term) public async Task<IEnumerable<Show>> SearchShowsAsync(Guid idCategory, string term)
{ {
var showsResponse = await TryGetAsync<IEnumerable<ShowResponse>>($"shows?limit=10&categoryId={idCategory}&term={term}"); var showsResponse = await TryGetAsync<IEnumerable<ShowResponse>>($"shows?limit=20&categoryId={idCategory}&term={term}");
return showsResponse?.Select(response => GetShow(response)); return showsResponse?.Select(response => GetShow(response));
} }
public async Task<IEnumerable<Show>> SearchShowsAsync(string term) public async Task<IEnumerable<Show>> SearchShowsAsync(string term)
{ {
var showsResponse = await TryGetAsync<IEnumerable<ShowResponse>>($"shows?limit=10&term={term}"); var showsResponse = await TryGetAsync<IEnumerable<ShowResponse>>($"shows?limit=20&term={term}");
return showsResponse?.Select(response => GetShow(response)); return showsResponse?.Select(response => GetShow(response));
} }