public async Task <UserVM> UserProfile(string id)
        {
            var user = await _userManager.FindByIdAsync(id);

            var userVm = toViewModel.User(user);

            return(userVm);
        }
Exemple #2
0
        public async Task <UserVM> UserProfile(string id)
        {
            using (_userManager)
            {
                var user = await _userManager.FindByIdAsync(id);

                UserVM userVm = null;
                if (user != null)
                {
                    userVm = toViewModel.User(user);
                }
                return(userVm);
            }
        }