public static Order Create(Customer customer, List <Product> products) { var order = Order.Create(Guid.NewGuid(), customer, products); return(order); }
public static Order Validate(Order order) { var model = Order.Create(order.Id, order.Customer, order.Products.ToList()); return(model); }