public async Task OnGet(string id) { try { if (id == null) { id = HttpContext.Session.GetString("userId"); } else { HttpContext.Session.SetString("userId", id); } User = new User(id); TagsList = Inf.GetAllUserTags(User); } catch (Exception) { RedirectToPage("ErrorPage"); } }