refact
This commit is contained in:
parent
7be51c6ac3
commit
9b7a6c0125
11 changed files with 66 additions and 25 deletions
|
|
@ -88,7 +88,7 @@ namespace Yavsc.Controllers
|
|||
[Authorize()]
|
||||
public IActionResult Create(string title)
|
||||
{
|
||||
var result = new BlogPostInputViewModel
|
||||
var result = new BlogPostBase
|
||||
{
|
||||
Title = title
|
||||
};
|
||||
|
|
@ -98,7 +98,7 @@ namespace Yavsc.Controllers
|
|||
|
||||
// POST: Blog/Create
|
||||
[HttpPost, Authorize, ValidateAntiForgeryToken]
|
||||
public IActionResult Create(BlogPostInputViewModel blogInput)
|
||||
public IActionResult Create(BlogPostBase blogInput)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue