Exemplo n.º 1
0
        public ActionResult Rejected()
        {
            var repo = new CandidatesRepository(Properties.Settings.Default.ConStr);
            var vm   = new CandidatesViewModel();

            vm.Candidates = repo.GetCandidates(CandidateStatus.Rejected);
            return(View(vm));
        }
        public List <Candidate> GetRefusedPpl()
        {
            var repo = new CandidatesRepository(_connectionString);

            return(repo.GetCandidates(Status.Refused));
        }
Exemplo n.º 3
0
        public ActionResult Refused()
        {
            var cRepo = new CandidatesRepository(Properties.Settings.Default.Constr);

            return(View(cRepo.GetCandidates(Status.Refused)));
        }