예제 #1
0
        public async Task <ActionResult> ChangeName(ChangeNameViewModel changeNameViewModel)
        {
            var currentUser = _userService.GetUserById(Guid.Parse(User.Identity.GetUserId()));
            await _userService.ChangeName(currentUser, changeNameViewModel.Name, changeNameViewModel.Surname);

            return(RedirectToAction("Index", "Home"));
        }