public static Domain.Models.Order Map(Entities.OrderEntity order)
 {
     return(new Domain.Models.Order
     {
         OrderNumber = order.Id,
         TimeStamp = (DateTime)order.OrderDate,
         CustomerPlaced = MapperCustomer.Map(order.Customer)
     });
 }
 /// <summary>
 /// Turn an entity order with the location and customer and it's orderlines into objects
 /// </summary>
 /// <param name="order"></param>
 /// <returns></returns>
 public static Domain.Models.Order MapOrderWithLocationCustomerAndOrderLines(Entities.OrderEntity order)
 {
     return(new Domain.Models.Order
     {
         OrderNumber = order.Id,
         Purchase = order.Orderlines.Select(MapperOrderLine.Map).ToList(),
         TimeStamp = (DateTime)order.OrderDate,
         CustomerPlaced = MapperCustomer.Map(order.Customer),
         LocationPlaced = MapperLocation.Map(order.Location)
     });
 }