You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
using Microsoft.AspNetCore.Mvc.Razor;
|
|
|
|
namespace Infrastructure.Web.Mvc.Razor
|
|
{
|
|
public abstract class MyRazorPage<TModel> : RazorPage<TModel>
|
|
{
|
|
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<dynamic>
|
|
{
|
|
}
|
|
} |