Пример #1
0
        public GetFeaturedProductsResponse GetFeaturedProducts()
        {
            GetFeaturedProductsResponse response = new GetFeaturedProductsResponse();

            response.Products = _productTitleRepository.GetAll().OrderByDescending(x => x.Price).Skip(0).Take(6).ConvertToProductViews();


            return(response);
        }
 public GetFeaturedProductsResponse GetFeaturedProducts()
 {
     return(new GetFeaturedProductsResponse
     {
         Products =
             _productTitleRepository.GetAll().OrderByDescending(title => title.Price).Take(6).
             ConvertToProductViews()
     });
 }