Esempio n. 1
0
        public IActionResult DeleteFaculty(int id)
        {
            uS.deleteUserbyfacultiesid(id);
            fS.deleteFaculty(id);
            AdminViewModel views = new AdminViewModel();

            views.users     = uS.getAllUsers().ToList();
            views.univers   = unvS.getAllUnivers().ToList();
            views.faculties = fS.getAllFaculties().ToList();
            return(View("Index", views));
        }