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

            return(PartialView(obj.GetAllDep()));
        }
Beispiel #2
0
        public ActionResult AdminIndex()
        {
            Dep obj = new Dep();
            IEnumerable <Department> departments = obj.GetAllDep();

            return(View(departments));
        }