Exemplo n.º 1
0
        public List <AppReportViewModel> GetAllApplicants()
        {
            var applicants = _applicantRepository.GetAll().
                             Select(x => new AppReportViewModel
            {
                EmailAddress = x.EmailAddress,
                FullName     = x.FirstName + " " + x.LastName,
                Status       = (int)x.Status
            }).ToList();

            return(applicants);
        }
 public IEnumerable <Applicant> GetAll()
 {
     return(applicantsRepository.GetAll());
 }