示例#1
0
        public IActionResult Edit(int DishId)
        {
            Dish Edit_Dish = dbContext.dishes.FirstOrDefault(dish => dish.DishId == DishId);

            return(View(Edit_Dish));
        }
示例#2
0
        public IActionResult Single_Dish(int DishId)
        {
            Dish Single_Dish = dbContext.dishes.FirstOrDefault(dish => dish.DishId == DishId);

            return(View("Single_Dish", Single_Dish));
        }