public Candidate GetCandidateForId(int id)
        {
            var repo = new CandidatesRepository(_connectionString);

            return(repo.GetById(id));
        }
示例#2
0
        public ActionResult ViewDetails(int id)
        {
            var candidate = repo.GetById(id);

            return(View(candidate));
        }