Beispiel #1
0
 // GET: Admin
 public ActionResult Index()
 {
     if (!user.IsAdmin())
     {
         return(View("Error"));
     }
     adminDal.UpdateLastLogin();
     ViewBag.CountMan = managerDal.GetManagers().Count();
     ViewBag.CountCan = candidateDal.GetPassedCandidate(null).Count;
     return(View());
 }