API
RedirectToPage
Creates a redirect to a Razor Page.
Formal Syntax & Structure
csharp syntaxcsharp
return RedirectToPage(new { accepted = true });Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.return RedirectToPage(new { accepted = true });