public HttpResponseMessage UpdateObjective([FromBody] ObjectiveDto objective) { try { _objectiveService.UpdateObjective(objective); var userInfo = _userService.GetUserById(objective.UserId); return(Request.CreateResponse(HttpStatusCode.OK, userInfo)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }