12 lines
837 B
C#
12 lines
837 B
C#
using HardwarePerformance.Models.DTOs;
|
|
|
|
namespace HardwarePerformance.Services
|
|
{
|
|
public interface IProductService
|
|
{
|
|
Task<PagedResultDto<ProductListDto>> GetProductsByCategoryAsync(int categoryId, int page = 1, int pageSize = 20, string sortBy = "CurrentRank", string order = "asc");
|
|
Task<ProductDto?> GetProductByIdAsync(int id);
|
|
Task<PagedResultDto<ProductListDto>> SearchProductsAsync(string query, int? categoryId = null, string? manufacturer = null, int? minScore = null, int? maxScore = null, int page = 1, int pageSize = 20);
|
|
Task<PagedResultDto<ProductListDto>> FilterProductsAsync(int categoryId, string? manufacturer = null, int? minScore = null, int? maxScore = null, int? releaseYear = null, int page = 1, int pageSize = 20, string sortBy = "CurrentRank", string order = "asc");
|
|
}
|
|
} |