public void OnGetAsync() { UserList = _userManager.Users.Select(u => new SelectListItem { Value = u.Id.ToString(), Text = u.UserName }).OrderBy(u => u.Text).ToList(); var currentUserId = Guid.Parse(User.Claims.Where(c => c.Type == ClaimTypes.NameIdentifier).FirstOrDefault().Value); Bookmarks = _bookmarksManager.List(OwnerFilter, SearchFilter, null, Order).Result.ToList(); }
public void OnGetAsync() { var currentUserId = Guid.Parse(User.Claims.Where(c => c.Type == ClaimTypes.NameIdentifier).FirstOrDefault().Value); Bookmarks = _bookmarksManager.List(currentUserId, SearchFilter, null, Order).Result.ToList(); }