public async Task <IActionResult> Post([FromBody] PostSkillDto skillDto)
        {
            var entity = _mapper.Map <Skill>(skillDto);

            var result = await _skillService.CreateAsync(entity);

            return(this.Ok(entity.Id));
        }
Пример #2
0
 public void Create(SkillShortDTO skill)
 {
     _service.CreateAsync(skill);
 }