// GET: CandidateProfiles/Details/5
        public ActionResult Details(int id)
        {
            CandidateProfileViewModel candidateProfile = IcanProf.ViewProfile(id);

            if (candidateProfile == null)
            {
                return(HttpNotFound());
            }
            return(View(candidateProfile));
        }
Beispiel #2
0
        /**
         * Allows the Student to select their Candidate to vote and view their profiles
         */
        public ActionResult Vote(int id)
        {
            CandidateProfileViewModel candidateProfile = iCandidateProfile.ViewProfile(id);

            if (candidateProfile == null)
            {
                return(HttpNotFound());
            }
            return(View(candidateProfile));
        }