From a4fbf088c8049857cebdbed0188ddfa82044eb8a Mon Sep 17 00:00:00 2001 From: ychung-mot Date: Thu, 29 Aug 2024 13:26:21 -0700 Subject: [PATCH] chore: def values for pageSize and pageNumber --- server/StrDss.Api/Controllers/RentalListingsController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/StrDss.Api/Controllers/RentalListingsController.cs b/server/StrDss.Api/Controllers/RentalListingsController.cs index 93f59df9..b695cd51 100644 --- a/server/StrDss.Api/Controllers/RentalListingsController.cs +++ b/server/StrDss.Api/Controllers/RentalListingsController.cs @@ -30,7 +30,7 @@ public RentalListingsController(ICurrentUser currentUser, IMapper mapper, IConfi [HttpGet] public async Task GetRentalListings(string? all, string? address, string? url, string? listingId, string? hostName, string? businessLicence, bool? prRequirement, bool? blRequirement, long? lgId, string? statuses, bool? reassigned, bool? takedownComplete, - int pageSize, int pageNumber, string orderBy = "ListingStatusSortNo", string direction = "asc") + int pageSize = 10, int pageNumber = 1, string orderBy = "ListingStatusSortNo", string direction = "asc") { var statusArray = statuses == null ? Array.Empty() : statuses!.Split(','); @@ -45,7 +45,7 @@ public async Task GetRentalListings(string? all, string? address, [HttpGet("grouped")] public async Task GetGroupedRentalListings(string? all, string? address, string? url, string? listingId, string? hostName, string? businessLicence, bool? prRequirement, bool? blRequirement, long? lgId, string? statuses, bool? reassigned, bool? takedownComplete, - int pageSize, int pageNumber, string orderBy = "matchAddressTxt", string direction = "asc") + int pageSize = 10, int pageNumber = 1, string orderBy = "matchAddressTxt", string direction = "asc") { var statusArray = statuses == null ? Array.Empty() : statuses!.Split(',');