public async Task <IHttpActionResult> PostSkill([FromBody] Skill skill) { var permissionTypeCreated = await _skillsService.AddSkillAsync(skill); if (HttpContext.Current == null) { return(Created("", permissionTypeCreated)); } var create = HttpContext.Current.Request.Url + $"/{permissionTypeCreated.Id}"; var response = Created(create, permissionTypeCreated); return(response); }