From 6ce589389f31fadedb299d8cc22796df56441e3f Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Tue, 31 Jan 2023 10:50:28 -0800 Subject: [PATCH 1/2] Show more shows on category pages --- src/Web/Pages/Pages/CategoryPage.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Web/Pages/Pages/CategoryPage.razor b/src/Web/Pages/Pages/CategoryPage.razor index 072a383..533e72b 100644 --- a/src/Web/Pages/Pages/CategoryPage.razor +++ b/src/Web/Pages/Pages/CategoryPage.razor @@ -36,7 +36,7 @@ else } @code { - private const int ItemsPerCategory = 10; + private const int ItemsPerCategory = 20; [Parameter] public Guid Id { get; set; } From c324a595ebefd7bd9d9782ea594d246457ebb4a7 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Tue, 31 Jan 2023 10:51:19 -0800 Subject: [PATCH 2/2] Update ShowsService.cs --- src/Mobile/Services/ShowsService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mobile/Services/ShowsService.cs b/src/Mobile/Services/ShowsService.cs index a7bf366..f55ef37 100644 --- a/src/Mobile/Services/ShowsService.cs +++ b/src/Mobile/Services/ShowsService.cs @@ -41,7 +41,7 @@ public class ShowsService public async Task> GetShowsByCategoryAsync(Guid idCategory) { var result = new List(); - var showsResponse = await TryGetAsync>($"shows?limit=10&categoryId={idCategory}"); + var showsResponse = await TryGetAsync>($"shows?limit=20&categoryId={idCategory}"); if (showsResponse == null) return result; @@ -58,14 +58,14 @@ public class ShowsService public async Task> SearchShowsAsync(Guid idCategory, string term) { - var showsResponse = await TryGetAsync>($"shows?limit=10&categoryId={idCategory}&term={term}"); + var showsResponse = await TryGetAsync>($"shows?limit=20&categoryId={idCategory}&term={term}"); return showsResponse?.Select(response => GetShow(response)); } public async Task> SearchShowsAsync(string term) { - var showsResponse = await TryGetAsync>($"shows?limit=10&term={term}"); + var showsResponse = await TryGetAsync>($"shows?limit=20&term={term}"); return showsResponse?.Select(response => GetShow(response)); }