public ActionResult Update([FromBody] JobDto dto) { var identity = HttpContext.User.Identity as ClaimsIdentity; var userId = identity.Claims.ToList()[0].Value; var user = _handler.Update(int.Parse(userId), dto); if (user != null) { return(Ok(user)); } return(Forbid()); }