public ActionResult MainIndex(int id) { Dep obj = new Dep(); bool result = obj.Delete(id); return(PartialView(obj.GetAllDep())); }
public ActionResult DeleteConfirmed(int id) { Dep obj = new Dep(); bool result = obj.Delete(id); return(RedirectToAction("AdminIndex")); }