Example #1
0
        public async Task <IQueryable <JobApplicationViewModel> > getJobApplications()
        {
            IQueryable <JobApplicationViewModel> query1;
            var alist = await _jobApplicationRepository.getAll();

            //foreach(var item in alist)
            //{
            //    foreach(var s in item.Schedules)
            //    {
            //        StatusType status = Enum.Parse<StatusType>(s.status);
            //    }
            //}
            query1 = alist.ProjectTo <JobApplicationViewModel>(_mapper.ConfigurationProvider);
            return(query1);
        }