Le créateur vient de l'authentification, donc on ne le prend pas du post
This commit is contained in:
parent
286c29f4e3
commit
3b21a12c20
3 changed files with 23 additions and 13 deletions
|
|
@ -114,7 +114,8 @@ namespace Yavsc.Blogs.Controllers
|
|||
var files = Request.HasFormContentType
|
||||
? Request.Form.Files
|
||||
: (IFormFileCollection)new FormFileCollection();
|
||||
var post = blogSpotService.Create(User.GetUserId(), blog, files);
|
||||
var uid = User.GetUserId();
|
||||
var post = blogSpotService.Create(uid, blog, files);
|
||||
return CreatedAtRoute("GetBlog", new { id = post.Id }, post);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue