public JsonResult Delete(int id) { bool result = _tacGiaService.Delete(id); _context.SaveChanges(); if (result) { return(Json(new { data = true })); } else { return(Json(new { data = false })); } }
public ActionResult Delete(int id) { tgService.Delete(id); return(RedirectToAction("Search", "QuanLyTacGia")); }