aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Models/Post/Comment/BaseCommentWebModel.cs
diff options
context:
space:
mode:
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; }
+ }
+}