public async Task <UserVM> UserProfile(string id) { var user = await _userManager.FindByIdAsync(id); var userVm = toViewModel.User(user); return(userVm); }
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); } }