// GET: Manager public ActionResult Index() { if (!user.IsManager()) { return(View("Error")); } managerDal.UpdateLastLogin(); ViewBag.CountCan = managerDal.GetCandidates().Count(); ViewBag.CountGen = qdata.GetQuestions().Where(b => b.TypeID.Equals(1)).ToList().Count(); ViewBag.CountMath = qdata.GetQuestions().Where(b => b.TypeID.Equals(2)).Count(); ViewBag.CountCom = qdata.GetQuestions().Where(b => b.TypeID.Equals(3)).Count(); return(View()); }