Exemple #1
0
 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()
     });
 }
Exemple #2
0
 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()
     });
 }