Ejemplo n.º 1
0
        public Price ToEntity()
        {
            var price = new Price
                            {
                                Value = this.Value,
                                IsTaxIncluded = this.IsTaxIncluded,
                                TaxRate = this.TaxRate,
                                Currency = this.Currency,
                                ProductId = this.ProductId
                            };

            return price;
        }
Ejemplo n.º 2
0
 public bool TryAddPrice(Price price)
 {
     priceRepository.Add(price);
     return true;
 }