public async Task <SkillTagDto> GetSkill(int id) { using (var unitOfWork = UnitOfWorkProvider.Create()) { return(await skillService.GetAsync(id)); } }
public async Task <IEnumerable <JobOfferDto> > GetOffersBySkill(int skillId) { using (UnitOfWorkProvider.Create()) { SkillTagDto skill = await skillService.GetAsync(skillId, false); if (skill == null) { return(null); } return(await jobOfferService.GetBySkills(skill)); } }
public async Task <IEnumerable <SelectListItem> > GetSkills(int skillGropId, int skillTypeId) { var skills = await _skillService.GetAsync(skillGropId, skillTypeId); var item = new List <SelectListItem> { new SelectListItem() { Value = null, Text = "", Selected = true } }; foreach (var skill in skills) { item.Add(new SelectListItem() { Value = skill.SkillId.ToString(), Text = skill.SkillName }); } return(item); }
public Task <SkillDTO> Get(int id) { return(_service.GetAsync(id)); }