public ActionResult ChangeDisplayName(ChangeDisplayNameModelDto model) { if (this.ModelState.IsValid) { this.accountService.ChangeDisplayName(model); return(this.RedirectToAction("Index")); } var viewmodel = this.accountService.GetAccountDetailsViewModel(); return(this.View("ChangeDisplayName", viewmodel)); }
public void ChangeDisplayName(ChangeDisplayNameModelDto model) { var currentUserId = this.infrastructure.GetCurrentUserId(); this.entityRepository.ChangeDisplayName(currentUserId, model.Displayname); }
public void ChangeDisplayName(ChangeDisplayNameModelDto model) { var currentUserId = this.sessionProvider.GetCurrentUserId(); this.userRepository.ChangeDisplayName(currentUserId, model.Displayname); }