public Pizza(String size, String crust, String toppings) { this.Size = size; this.Crust = crust; this.Toppings = toppings; Cost = BizLogic.PizzaPrice(size, crust, toppings); }
public bool CanOrder(string location, Order order) { if (order == null) { return(true); } if (BizLogic.CheckAllowOrderAtSameLocation(order.Time) && BizLogic.CheckAllowOrderOnlySameLocation(order.Time, location, order.Location) ) { return(true); } return(false); }