Example #1
0
        public ActionResult MainIndex(int id)
        {
            Dep  obj    = new Dep();
            bool result = obj.Delete(id);

            return(PartialView(obj.GetAllDep()));
        }
Example #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            Dep  obj    = new Dep();
            bool result = obj.Delete(id);

            return(RedirectToAction("AdminIndex"));
        }