public Order(Models.Order order, Models.Customer customer, Models.Item[] items) { Id = order.Id.ToString(); DateTimeStamp = DateExtensions.ConvertToJS(order.DateTimeStamp); IsCompleted = order.IsCompleted; Customer = new Entity(customer.Id.ToString(), customer.Name); Items = items.Select(item => new OrderItem(item)).ToArray(); }
public Order(Models.Order order) { Id = order.Id.ToString(); DateTimeStamp = DateExtensions.ConvertToJS(order.DateTimeStamp); IsCompleted = order.IsCompleted; }