public static OrderEntity CreateOrder(IOrder order) =>
 new OrderEntity()
 {
     OrderId       = order.OrderId,
     TrackingId    = order.TrackingId,
     AddressEntity = AddressFactory.CreateAddress(order.OrderAddress),
     CreatedOrder  = DateTime.UtcNow,
     Items         = new List <ItemEntity>(InventoryFactory.Create(order.Items))
 };
 public static IOrder CreateOrder(OrderEntity entity) =>
 new Order(entity.OrderId, entity.TrackingId, AddressFactory.CreateAddress(entity.AddressEntity), InventoryFactory.Create(entity.Items));