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)); }
public ActionResult Refused() { var cRepo = new CandidatesRepository(Properties.Settings.Default.Constr); return(View(cRepo.GetCandidates(Status.Refused))); }