コード例 #1
0
ファイル: BL_imp.cs プロジェクト: tNisenbom/Project-in-.NET
        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));
        }