public static Price ToModel(this Contracts.Price price) { if (price == null) { return(null); } return(new Price() { Amount = price.Money.Amount, IsNegotiable = price.IsNegotiable }); }
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 }); }