Exemplo n.º 1
0
        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
                }));
            }
        }
Exemplo n.º 2
0
 public ActionResult Delete(int id)
 {
     tgService.Delete(id);
     return(RedirectToAction("Search", "QuanLyTacGia"));
 }