Esempio n. 1
0
        private IEnumerable <ProductListItemViewModel> GetFilteredCoffees(IRepositoryFilter filter)
        {
            var coffees = coffeeRepository.GetCoffees(filter);

            var items = coffees.Select(
                coffee => new ProductListItemViewModel(
                    coffee,
                    calculationService.CalculatePrice(coffee.SKU),
                    coffee.Product.PublicStatus?.PublicStatusDisplayName,
                    pageUrlRetriever)
                );

            return(items);
        }
Esempio n. 2
0
 public string Get()
 {
     System.Collections.Generic.IEnumerable <Business.Dto.Coffee.CoffeeDto> data = CoffeeRepository.GetCoffees();
     return("Data");
 }