Exemple #1
0
        //getting ALL JobCategory with all JobPost into 1 layer using specification
        public async Task <IQueryable <JobCategoryViewModel> > GetAllJobCategoryWithJobPost()
        {
            IQueryable <JobCategoryViewModel> query;
            var alist = await _jobCategoryRepository.getAllJobCategoryWithJobPost();

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