Example #1
0
 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();
 }
Example #2
0
 public Order(Models.Order order)
 {
     Id            = order.Id.ToString();
     DateTimeStamp = DateExtensions.ConvertToJS(order.DateTimeStamp);
     IsCompleted   = order.IsCompleted;
 }