public Order(Warehouse w, string toAddress, Employee e, ICollection <ProductBalance> products = null) { OrderTime = DateTime.Now; DeliveryTime = OrderTime.AddDays(3); AddressFrom = w.Address; AddressTo = toAddress; Status = OrderStatusId.Waiting; Warehouse = w; Products = products; Employee = e; }
public Order(Customer customer, int customerId, string discount, string price, bool delivered) { this.Customer = customer; this.CustomerId = customerId; this.OrderLines = new List <OrderLine>(); this.Discount = discount; this.TotalPrice = price; this.OrderTime = DateTime.Now.Date; this.OrderDate = DateTime.Now.Date.ToShortDateString(); this.Delivered = delivered; this.LastPickUpDate = OrderTime.AddDays(7).ToShortDateString(); }
public Order() { this.OrderTime = DateTime.Now.Date; this.OrderDate = DateTime.Now.Date.ToShortDateString(); this.LastPickUpDate = OrderTime.AddDays(7).ToShortDateString(); }