示例#1
0
        public ActionResult DeleteDishesBook(int BookId)
        {
            DishesBook dishesbook = new DishesBook();

            dishesbook = DishesBookBLL.Get(o => o.BookId == BookId);
            DishesBookBLL.Delete(dishesbook);
            return(RedirectToAction("DishesBook"));
        }
示例#2
0
        public ActionResult ModifyBook(int OrderStatus, int BookId)
        {
            DishesBook dishesbook = new DishesBook();

            dishesbook             = DishesBookBLL.Get(o => o.BookId == BookId);
            dishesbook.OrderStatus = OrderStatus;
            DishesBookBLL.Update(dishesbook);
            return(RedirectToAction("DishesBook"));
        }