Esempio n. 1
0
 public void AddOrderedDish(Ordered_Dish o)
 {
     if (order_by_high_price(o.OrderCode) == false)
     {
         throw new Exception("it's imposible to order order at this price");
     }
     if (o.Amount < 1)
     {
         throw new Exception("the amount is wrong!");
     }
     //if (order_by_hechsher(o.OrderCode, o.DishCode) == false)
     //    throw new Exception("the hechsher dish is not suitable for this order...");
     dal.AddOrderedDish(o);
 }