Пример #1
0
        public JsonResult Delete(int id)
        {
            bool result = _nhaXuatBanService.Delete(id);

            context.SaveChanges();
            if (result)
            {
                return(Json(new
                {
                    data = true
                }));
            }
            else
            {
                return(Json(new
                {
                    data = false
                }));
            }
        }
Пример #2
0
 public ActionResult Delete(int id)
 {
     nxbService.Delete(id);
     return(RedirectToAction("Search", "QuanLyNXB"));
 }