Ejemplo n.º 1
0
        public ActionResult MainIndex(int id)
        {
            Dep  obj    = new Dep();
            bool result = obj.Delete(id);

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

            return(View(departments));
        }