예제 #1
0
        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());
        }