mirror of https://github.com/abpframework/abp.git
9 changed files with 62 additions and 8 deletions
@ -0,0 +1,7 @@ |
|||
@page |
|||
@inherits MyCompanyName.MyProjectName.Web.Pages.MyProjectNamePage |
|||
@model MyCompanyName.MyProjectName.Web.Pages.MyProjectName.IndexModel |
|||
@{ |
|||
} |
|||
<h1>MyProjectName</h1> |
|||
<p>A sample page for the MyProjectName module.</p> |
|||
@ -0,0 +1,16 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.AspNetCore.Mvc.RazorPages; |
|||
|
|||
namespace MyCompanyName.MyProjectName.Web.Pages.MyProjectName |
|||
{ |
|||
public class IndexModel : PageModel |
|||
{ |
|||
public void OnGet() |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
using Microsoft.AspNetCore.Mvc.Localization; |
|||
using Microsoft.AspNetCore.Mvc.Razor.Internal; |
|||
using MyCompanyName.MyProjectName.Localization; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|||
|
|||
namespace MyCompanyName.MyProjectName.Web.Pages |
|||
{ |
|||
/* Inherit your UI Pages from this class. To do that, add this line to your Pages (.cshtml files under the Page folder): |
|||
* @inherits MyCompanyName.MyProjectName.Web.Pages.MyProjectNamePage |
|||
*/ |
|||
public abstract class MyProjectNamePage : AbpPage |
|||
{ |
|||
[RazorInject] |
|||
public IHtmlLocalizer<MyProjectNameResource> L { get; set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
using MyCompanyName.MyProjectName.Localization; |
|||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
|||
|
|||
namespace MyCompanyName.MyProjectName.Web.Pages |
|||
{ |
|||
/* Inherit your PageModel classes from this class. |
|||
*/ |
|||
public abstract class MyProjectNamePageModel : AbpPageModel |
|||
{ |
|||
protected MyProjectNamePageModel() |
|||
{ |
|||
LocalizationResourceType = typeof(MyProjectNameResource); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue