Which one is better to use and why?
ApplicationUser? user = await _userManager.FindByIdAsync(userId);ApplicationUser? userOne = _userManager.Users.Where(u => u.Id == userId).Single();
Return a ApplicationUser using an ID in Blazor .NET 8
Which one is better to use and why?
ApplicationUser? user = await _userManager.FindByIdAsync(userId);ApplicationUser? userOne = _userManager.Users.Where(u => u.Id == userId).Single();
Return a ApplicationUser using an ID in Blazor .NET 8