Esempio n. 1
0
 public ProductDto BuildProductDto(Guid id, string name, double price, string type)
 {
     {
         var product = new ProductDto {
             Id           = id,
             Name         = name,
             Price        = price,
             PriceInNzd   = _priceCalculator.GetInNzd(price),
             PriceInEuros = _priceCalculator.GetInEuros(price),
             PriceInUsd   = _priceCalculator.GetInUsd(price),
             Type         = type
         };
         return(product);
     }
 }