예제 #1
0
        public async Task <ActionResult> Details()
        {
            var user = await _userManager.FindByIdAsync(CurrentUserId);

            UserViewModel userViewModel = UserViewModel.Map(user);

            return(View(userViewModel));
        }
#pragma warning disable S4261 // Methods should be named according to their synchronicities
        public async Task <ActionResult> Details()
#pragma warning restore S4261 // Methods should be named according to their synchronicities
        {
            var user = await _userManager.FindByIdAsync(CurrentUserId);

            var userViewModel = UserViewModel.Map(user);

            return(View(userViewModel));
        }