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