using Microsoft.AspNetCore.Mvc.Razor; namespace Infrastructure.Web.Mvc.Razor { public abstract class MyRazorPage : RazorPage { public string HtmlTitle { get { return this.ViewData["HtmlTitle"] as string; } set { this.ViewData["HtmlTitle"] = value; } } public string HtmlAction { get { return this.ViewData["HtmlAction"] as string; } set { this.ViewData["HtmlAction"] = value; } } public bool HideBread { get { return (bool)(this.ViewData["HideBread"] ?? false); } set { this.ViewData["HideBread"] = value; } } public bool HidePaged { get { return (bool)(this.ViewData["HideBread"] ?? false); } set { this.ViewData["HideBread"] = value; } } public bool DisableBackUrl { get { return (bool)(this.ViewData["DisableBackUrl"] ?? false); } set { this.ViewData["DisableBackUrl"] = value; } } public string BackUrl { get { return this.ViewData["BackUrl"] as string; } set { this.ViewData["BackUrl"] = value; } } } public abstract class MyRazorPage : MyRazorPage { } }