Esempio n. 1
0
        public async Task <IActionResult> AddSkillKnowledgeToCV(SkillKnowledgeRequestModel model, Guid id)
        {
            var mappedModel = _mapper.Map <SkillKnowledgeRequestModel, SkillKnowledgeServiceModel>(model);

            try
            {
                await _cvService.AddSkillKnowledgeToCVAsync(mappedModel, id);

                return(Ok());
            }
            catch
            {
                return(StatusCode(500, "Internal server error"));
            }
        }