I'm working on a ASP.NET Core Razor pages project that uses a Layout
and wonder how would I return an empty page?
I tried something like
public ActionResult OnGet()
{
return null;
}
but that only return empty section, it still show all of the layout elements.
Is there a way to return a completely empty page?