Example #1
0
 public ActionResult Result()
 {
     if (!user.IsCandidate())
     {
         return(View("Error"));
     }
     result = canDal.GetResult();
     return(View(result));
 }
Example #2
0
        public ActionResult PassedCandidateDetails(int id)
        {
            if (!user.IsAdmin())
            {
                return(View("Error"));
            }
            CandidateScoreViewModel can = candidateDal.PassedCandidateDetails(id);

            return(View(can));
        }