aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Models
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-24 00:07:44 +0200
committertranstrike <transtrike@gmail.com>2021-01-24 00:07:44 +0200
commitf910a2a63cb83b35c6589591400a69c8f7f7917c (patch)
tree2e601172f734d53ab7a903426ea2d674b5048a76 /src/DevHive.Web/Models
parente01a81954e0fba2c4521e03a76f48a970a87994f (diff)
downloadDevHive-f910a2a63cb83b35c6589591400a69c8f7f7917c.tar
DevHive-f910a2a63cb83b35c6589591400a69c8f7f7917c.tar.gz
DevHive-f910a2a63cb83b35c6589591400a69c8f7f7917c.zip
Migrations added; CRUD over Posts&Comments successfully completed
Diffstat (limited to 'src/DevHive.Web/Models')
-rw-r--r--src/DevHive.Web/Models/Post/Comment/UpdateCommentWebModel.cs2
-rw-r--r--src/DevHive.Web/Models/Post/Post/CreatePostWebModel.cs4
-rw-r--r--src/DevHive.Web/Models/Post/Post/UpdatePostWebModel.cs2
3 files changed, 3 insertions, 5 deletions
diff --git a/src/DevHive.Web/Models/Post/Comment/UpdateCommentWebModel.cs b/src/DevHive.Web/Models/Post/Comment/UpdateCommentWebModel.cs
index 6dff49e..cb1c60a 100644
--- a/src/DevHive.Web/Models/Post/Comment/UpdateCommentWebModel.cs
+++ b/src/DevHive.Web/Models/Post/Comment/UpdateCommentWebModel.cs
@@ -6,6 +6,8 @@ namespace DevHive.Web.Models.Post.Comment
{
public Guid CommentId { get; set; }
+ public Guid PostId { get; set; }
+
public string NewMessage { get; set; }
}
}
diff --git a/src/DevHive.Web/Models/Post/Post/CreatePostWebModel.cs b/src/DevHive.Web/Models/Post/Post/CreatePostWebModel.cs
index 647b30e..b7b4cf4 100644
--- a/src/DevHive.Web/Models/Post/Post/CreatePostWebModel.cs
+++ b/src/DevHive.Web/Models/Post/Post/CreatePostWebModel.cs
@@ -8,10 +8,6 @@ namespace DevHive.Web.Models.Post.Post
{
[NotNull]
[Required]
- public Guid CreatorId { get; set; }
-
- [NotNull]
- [Required]
public string Message { get; set; }
// public List<IFormFile> Files { get; set; }
diff --git a/src/DevHive.Web/Models/Post/Post/UpdatePostWebModel.cs b/src/DevHive.Web/Models/Post/Post/UpdatePostWebModel.cs
index fe42715..685f08b 100644
--- a/src/DevHive.Web/Models/Post/Post/UpdatePostWebModel.cs
+++ b/src/DevHive.Web/Models/Post/Post/UpdatePostWebModel.cs
@@ -12,6 +12,6 @@ namespace DevHive.Web.Models.Post.Post
[NotNull]
[Required]
- public string Message { get; set; }
+ public string NewMessage { get; set; }
}
}