public async Task UpdateAsync(int id, SkillSaveViewModel skillViewModel)
        {
            var skillEntity = await ValidateOperationAsync(id);

            skillEntity.Name    = skillViewModel.Name;
            skillEntity.LevelId = skillViewModel.LevelId;

            await _skillsRepository.UpdateAsync(skillEntity);
        }
        public async Task <int> AddAsync(SkillSaveViewModel skillViewModel)
        {
            var skillEntity = new Skill()
            {
                Name    = skillViewModel.Name,
                LevelId = skillViewModel.LevelId
            };

            return(await _skillsRepository.AddAsync(skillEntity));
        }
        public async Task <IActionResult> Update(int id, [FromBody] SkillSaveViewModel skillViewModel)
        {
            await _skillsService.UpdateAsync(id, skillViewModel);

            return(Ok());
        }
 public async Task <IActionResult> Create([FromBody] SkillSaveViewModel skillViewModel)
 {
     return(Ok(await _skillsService.AddAsync(skillViewModel)));
 }