mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 11:21:47 -05:00
store post subjects in db
This commit is contained in:
parent
588d21569c
commit
7e80b8ce18
1 changed files with 1 additions and 0 deletions
|
@ -213,6 +213,7 @@ public ActionResult PostReply(CreateTopicViewModel model)
|
||||||
|
|
||||||
var post = new ForumPost();
|
var post = new ForumPost();
|
||||||
post.AuthorId = User.Identity.GetUserId();
|
post.AuthorId = User.Identity.GetUserId();
|
||||||
|
post.Subject = model.Subject;
|
||||||
post.Body = model.Body;
|
post.Body = model.Body;
|
||||||
post.Id = Guid.NewGuid().ToString();
|
post.Id = Guid.NewGuid().ToString();
|
||||||
post.Parent = topic.Id;
|
post.Parent = topic.Id;
|
||||||
|
|
Loading…
Reference in a new issue