Exemple #1
0
        public async Task <IActionResult> GetVacanciesByCVSkillSet(Guid CVId, int threshold)
        {
            try
            {
                var result = await _vacancyService.GetVacanciesByCV(CVId, threshold);

                if (result.Count() == 0)
                {
                    return(NoContent());
                }
                else
                {
                    return(Ok(result));
                }
            }
            catch (ArgumentNullException)
            {
                //log
                return(NotFound(CVId));
            }
        }