aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Models/Post/Comment/BaseCommentWebModel.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-23 17:12:14 +0200
committertranstrike <transtrike@gmail.com>2021-01-23 17:12:14 +0200
commitcc9734b155d1cd71536030dd1b2b387792f70e6f (patch)
tree7a8235d17d14bdb85e160f561f62133aae6101b6 /src/DevHive.Web/Models/Post/Comment/BaseCommentWebModel.cs
parent9d7489b4958a5e6e5b0cd38a61e5bf4ff12f23da (diff)
downloadDevHive-cc9734b155d1cd71536030dd1b2b387792f70e6f.tar
DevHive-cc9734b155d1cd71536030dd1b2b387792f70e6f.tar.gz
DevHive-cc9734b155d1cd71536030dd1b2b387792f70e6f.zip
Comment Models fixed
Diffstat (limited to 'src/DevHive.Web/Models/Post/Comment/BaseCommentWebModel.cs')
-rw-r--r--src/DevHive.Web/Models/Post/Comment/BaseCommentWebModel.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/DevHive.Web/Models/Post/Comment/BaseCommentWebModel.cs b/src/DevHive.Web/Models/Post/Comment/BaseCommentWebModel.cs
new file mode 100644
index 0000000..9ba0b87
--- /dev/null
+++ b/src/DevHive.Web/Models/Post/Comment/BaseCommentWebModel.cs
@@ -0,0 +1,21 @@
+using System;
+using System.ComponentModel.DataAnnotations;
+using System.Diagnostics.CodeAnalysis;
+
+namespace DevHive.Web.Models.Post.Comment
+{
+ public class BaseCommentWebModel
+ {
+ [NotNull]
+ [Required]
+ public Guid PostId { get; set; }
+
+ [NotNull]
+ [Required]
+ public Guid CommentId { get; set; }
+
+ [NotNull]
+ [Required]
+ public string Message { get; set; }
+ }
+}