Пример #1
0
 // Returns a number of product options for a particular productId
 public ProductOptionsDto GetProductOptions(Guid productId)
 {
     return(new ProductOptionsDto()
     {
         Items = _repo.GetAllItemsForProduct(productId)
                 .Select((option) => MapProductOptionToDto(option))
                 .ToList()
     });
 }