public ActionResult DeleteDishesBook(int BookId) { DishesBook dishesbook = new DishesBook(); dishesbook = DishesBookBLL.Get(o => o.BookId == BookId); DishesBookBLL.Delete(dishesbook); return(RedirectToAction("DishesBook")); }
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")); }