public static CarPurchase ToCarPurchase(this DomainModels.CarPurchase domain) { return(new CarPurchase { Id = domain.Id, Car = domain.Car.ToCar(), OrderDate = domain.OrderDate, PricePaid = domain.PricePaid, Customer = domain.Customer.ToCustomer() }); }
public static CarPurchase ToCarPurchase(this DomainModels.CarPurchase domain) { return(new CarPurchase { Id = domain.Id, Car = domain.Car.ToCar(), OrderDate = domain.OrderDate, PricePaid = domain.PricePaid, SalesPerson = domain.SalesPerson.ToSalesPerson() }); }