Exemplo n.º 1
0
 public Task <IActionResult> UpdateProfile(ChangeProfileModel model)
 {
     return(MakeChangeAsync(user => userManager.UpdateSafeAsync(user.Identity, model.ToValues()),
                            "Account updated successfully."));
 }
Exemplo n.º 2
0
 public Task <IActionResult> UpdateProfile(ChangeProfileModel model)
 {
     return(MakeChangeAsync(id => userService.UpdateAsync(id, model.ToValues()),
                            T.Get("users.profile.updateProfileDone"), model));
 }
Exemplo n.º 3
0
 public Task <IActionResult> UpdateProfile(ChangeProfileModel model)
 {
     return(MakeChangeAsync(u => UpdateAsync(u, model.ToValues()),
                            "Account updated successfully.", model));
 }