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 |
|
| Microsoft.AspNetCore.Authorization.IAuthorizationService |
authorization |
|
| Microsoft.Extensions.Options.IOptions<BloggingUrlOptions> |
blogOptions |
|
Properties
Blog
Declaration
public BlogDto Blog { get; set; }
Property Value
BlogShortName
Declaration
[BindProperty(SupportsGet = true)]
public string BlogShortName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Post
Declaration
[BindProperty]
public NewModel.CreatePostViewModel Post { get; set; }
Property Value
Methods
OnGetAsync()
Declaration
public virtual Task<ActionResult> OnGetAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult> |
|
OnPost()
Declaration
public virtual Task<ActionResult> OnPost()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult> |
|
Extension Methods