public async Task <dynamic> Update([FromBody] LoginInfoUpdate item) { if (item == null) { return new { JsonString = "Error" } } ; var currentUser = JwtIdentity.UserInfo(Thread.CurrentPrincipal.Identity); //item.SubmiterUserId = currentUser.Id; var result = await _sqlData.LoginInfo.Update(item); return(new { Result = JsonConvert.DeserializeObject(result) }); }
public bool UserUpdate(LoginInfoUpdate userUpdate) { ModifyUserModel user = new ModifyUserModel() { Email = userUpdate.Email, // Password = userUpdate.Pass, // Profile = profile, UserLastName = userUpdate.UserLastName, UserName = userUpdate.UserName }; UserController controller = new UserController(); return(controller.UpdateUsers(user)); //return new UserModel(); }