Class NewModel
Inheritance
System.Object
NewModel
Assembly: Volo.Blogging.Web.dll
Syntax
public class NewModel : BloggingPageModel
Constructors
NewModel(IPostAppService, IBlogAppService, IAuthorizationService, IOptions<BloggingUrlOptions>)
Declaration
public NewModel(IPostAppService postAppService, IBlogAppService blogAppService, IAuthorizationService authorization, IOptions<BloggingUrlOptions> blogOptions)
Parameters
| Type |
Name |
Description |
| IPostAppService |
postAppService |
|
| IBlogAppService |
blogAppService |
|
| IAuthorizationService |
authorization |
|
| IOptions<BloggingUrlOptions> |
blogOptions |
|
Properties
Blog
Declaration
public BlogDto Blog { get; set; }
Property Value
BlogShortName
Declaration
public string BlogShortName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Post
Declaration
public NewModel.CreatePostViewModel Post { get; set; }
Property Value
Methods
OnGetAsync()
Declaration
public virtual Task<ActionResult> OnGetAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<ActionResult> |
|
OnPost()
Declaration
public virtual Task<ActionResult> OnPost()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<ActionResult> |
|
Extension Methods