Example #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;
        }
Example #2
0
 public bool TryAddPrice(Price price)
 {
     priceRepository.Add(price);
     return true;
 }