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 })); } }
public ActionResult Delete(int id) { nxbService.Delete(id); return(RedirectToAction("Search", "QuanLyNXB")); }