feat: enhance WithdrawalRequests page with payout selection and improved submission logic; add sorting options for products
Build and Deploy / build (push) Successful in 1m18s

This commit is contained in:
masoodafar-web
2025-12-27 06:22:41 +03:30
parent 43cdf7c897
commit e3521af071
10 changed files with 228 additions and 57 deletions
@@ -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);