Ejemplo n.º 1
0
        public async Task <IQueryable <JobCategoryViewModel> > getCategories()
        {
            IQueryable <JobCategoryViewModel> query1;
            var alist = await _jobCategoryRepository.getAll();

            query1 = alist.ProjectTo <JobCategoryViewModel>(_mapper.ConfigurationProvider);
            return(query1);
        }