public async Task <IActionResult> Post([FromBody] SkillDto skillDto) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var createdSkillID = await _skillsService.CreateSkillAsync(skillDto); skillDto.ID = createdSkillID; var routevalues = new { controller = "Skills", id = createdSkillID }; CreatedAtRouteResult result = CreatedAtRoute("GetSkill", routevalues, skillDto); return(result); }