public async Task <IActionResult> OnGet(int?qid = null) { if (qid != null) { return(await OnGetWithId(qid.Value)); } if (!User.Identity.IsAuthenticated) { return(RedirectToPage("/Login")); } Collections = await _collectionController.GetAsync(); return(Page()); }