示例#1
0
        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));
        }
示例#2
0
        public void ChangeDisplayName(ChangeDisplayNameModelDto model)
        {
            var currentUserId = this.infrastructure.GetCurrentUserId();

            this.entityRepository.ChangeDisplayName(currentUserId, model.Displayname);
        }
示例#3
0
        public void ChangeDisplayName(ChangeDisplayNameModelDto model)
        {
            var currentUserId = this.sessionProvider.GetCurrentUserId();

            this.userRepository.ChangeDisplayName(currentUserId, model.Displayname);
        }