public int UpdateUser(User_x user) { string UID = CheckJWT(WebOperationContext.Current); if (user.UID != UID) { throw new Exception("UidProvideUserDontMachWithAuthUid"); } return(repository.UpdateUser(user)); }