Example #1
0
 public static Price ToModel(this Contracts.Price price)
 {
     if (price == null)
     {
         return(null);
     }
     return(new Price()
     {
         Amount = price.Money.Amount,
         IsNegotiable = price.IsNegotiable
     });
 }
Example #2
0
 public static Price ToEntity(this Contracts.Price price)
 {
     if (price == null)
     {
         return(null);
     }
     return(new Price()
     {
         Money = new Money(
             price.Money.Amount,
             price.Money.Currency),
         IsNegotiable = price.IsNegotiable
     });
 }