public IEnumerable <Ordered_Dish> GetOrderDishes(int o) { int index = dal.GetListOrder().FindIndex(s => s.OrderCode == o); if (index == -1) { throw new Exception("there are no order with this code"); } return(dal.GetOrderDishes(o)); }