feat: enhance WithdrawalRequests page with payout selection and improved submission logic; add sorting options for products
Build and Deploy / build (push) Successful in 1m18s
Build and Deploy / build (push) Successful in 1m18s
This commit is contained in:
@@ -58,7 +58,7 @@ public class ProductService
|
||||
_client = client;
|
||||
}
|
||||
|
||||
public async Task<List<Product>> GetProductsAsync(string? query = null, long? categoryId = null)
|
||||
public async Task<List<Product>> GetProductsAsync(string? query = null, long? categoryId = null, string? sortBy = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -75,7 +75,12 @@ public class ProductService
|
||||
|
||||
if (categoryId is { } value)
|
||||
{
|
||||
request.Filter.CategoryId = value ;
|
||||
request.Filter.CategoryId = value;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(sortBy))
|
||||
{
|
||||
request.SortBy = sortBy;
|
||||
}
|
||||
|
||||
var resp = await _client.GetAllProductsByFilterAsync(request);
|
||||
|
||||
Reference in New Issue
Block a user