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.authentication.GetCurrentUserId();
     this.userRepository.ChangeDisplayName(currentUserId, model.Displayname);
 }