Skip to content

Commit

Permalink
chore: def values for pageSize and pageNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
ychung-mot committed Aug 29, 2024
1 parent 0a34642 commit a4fbf08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/StrDss.Api/Controllers/RentalListingsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public RentalListingsController(ICurrentUser currentUser, IMapper mapper, IConfi
[HttpGet]
public async Task<ActionResult> 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<string>() : statuses!.Split(',');

Expand All @@ -45,7 +45,7 @@ public async Task<ActionResult> GetRentalListings(string? all, string? address,
[HttpGet("grouped")]
public async Task<ActionResult> 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<string>() : statuses!.Split(',');

Expand Down

0 comments on commit a4fbf08

Please sign in to comment.