public IActionResult OnGet() { if (!User.Claims.First(c => c.Type == "IsAdmin").Value.Equals("True")) { return(RedirectToPage("../index")); } Blogs = blogData.GetAwaitingApproval(); return(Page()); }