public async Task <IActionResult> PostSkill([FromBody] SkillDTO skill) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var userId = await _userLogic.GetIdFromAzureUIdAsync(GetUserId()); var success = await _userLogic.AddSkillAsync(userId, skill); if (success == ResponseLogic.SUCCESS) { return(NoContent()); } else if (success == ResponseLogic.NOT_FOUND) { return(NotFound()); } else { return(StatusCode(500)); } }