Example #1
0
        public static QueryPageModel <Product> GetProducts(ProductSearch query)
        {
            var data = _productService.SearchProduct(query);

            return(new QueryPageModel <Product>()
            {
                Models = data.Models.ToList().Map <List <Product> >(),
                Total = data.Total
            });
        }