public ISearchResults <object> SearchProducts(IQueryModel model) { var query = (ProductsQueryModel)ProductsQueryModel.Build(model); var results = _products.GetProducts(query); return(SearchResults <ProductModel> .BuildGeneric(results)); }
public ServiceResponse GetAllProducts(ProductsQueryModel queryModel) { if (queryModel == null) { queryModel = new ProductsQueryModel(); } return(productservices.GetAllProducts(queryModel)); }