Beispiel #1
0
        /// <summary>
        /// Get All Job
        /// </summary>
        /// <param name="JobId"></param>
        /// <returns></returns>
        public List <JobMain> GetAllJob()
        {
            var job = _jobPostRepo.GetAllJob();

            foreach (var a in job)
            {
                a.DocumentData = _documentDbService.GetDocument(a.JobMainId);
                long companyId = _compnyHasJobService.GetCompanyId(a.JobMainId);
                a.CompanyDetails = _compnyDataService.GetCompanyDetailsByCompanyId(companyId);
                a.CompanyLogo    = _documentDbService.GetDocument(companyId);
                a.TagsList       = _tagService.GetTags(a.JobMainId);
                a.TagName        = _tagService.GetTags(a.JobMainId).Count() > 0? string.Join(",", _tagService.GetTags(a.JobMainId).Select(d => d.TagName).ToList()):null;
            }
            return(job);
        }