Пример #1
0
 internal static BL.DomainModel.Order AdaptOrder(Order o, BL.DomainModel.Customer c)
 {
     BL.DomainModel.Order order = new BL.DomainModel.Order()
     {
         OrderId     = o.OrderId,
         OrderStatus = (OrderStatus)o.OrderStatus,
         OrderDate   = o.OrderDate,
         ShippedDate = o.ShippedDate,
         Version     = o.Version.ToUlong(),
         Customer    = c ?? CustomerAdapter.AdaptCustomer(o.Customer)
     };
     order.OrderDetails = AdaptOrderDetails(o.OrderDetails, order);
     return(order);
 }