public ActionResult ScheduleInterview()
 {
     if (!Navigator.IsUserLoggedIn(Session))
     {
         @ViewBag.Message = "Sorry! You need to login to view this page.";
         return View("Message");
         //return RedirectToAction("Login", "Account");
     }
     else if (!Navigator.UserRoleValidation(Session, "manager"))
     {
         @ViewBag.Message = "Access Denied !   You are not allowed to visit this page.";
         return View("Message");
         //return RedirectToAction("Login", "Account");
     }
     List<JobModel> jobs = ASCommonDAL.GetJobsToBeInterviewed();
     List<JobWithApplicantsModel> model = new List<JobWithApplicantsModel>();
     foreach (var item in jobs)
     {
         JobWithApplicantsModel jobWithAppl = new JobWithApplicantsModel(item);
         jobWithAppl.ApplicantCount = ASCommonDAL.GetApplicantCount(item.JobId);
         model.Add(jobWithAppl);
     }
     @ViewBag.Controller = "Admin";
     @ViewBag.Layout = "~/Views/Shared/_LayoutPageManager.cshtml";
     return View("../Staff/ScheduleInterview", model);
 }
        public ActionResult ReleaseResults()
        {
            if (!Navigator.IsUserLoggedIn(Session))
            {
                @ViewBag.Message = "Sorry! You need to login to view this page.";
                return View("Message");
                //return RedirectToAction("Login", "Account");
            }
            else if (!Navigator.UserRoleValidation(Session, "staff"))
            {
                @ViewBag.Message = "Access Denied !   You are not allowed to visit this page.";
                return View("Message");
                //return RedirectToAction("Login", "Account");
            }
            else if (!Navigator.IsStaffAllowed(Session, "RightToPublish"))
            {
                @ViewBag.Layout = "~/Views/Shared/_LayoutPageStaff.cshtml";
                @ViewBag.Message = "User Rights Denied! You don't have permission for this.";
                return View("Message");
                //return RedirectToAction("Login", "Account");
            }

            List<JobModel> jobs = ASCommonDAL.GetJobsForReleasingResult();
            List<JobWithApplicantsModel> model = new List<JobWithApplicantsModel>();
            foreach (var item in jobs)
            {
                JobWithApplicantsModel jobWithAppl = new JobWithApplicantsModel(item);
                jobWithAppl.ApplicantCount = ASCommonDAL.GetApplicantCount(item.JobId);
                model.Add(jobWithAppl);
            }
            @ViewBag.Layout = "~/Views/Shared/_LayoutPageStaff.cshtml";
            return View(model);
        }