aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Models/Post/Comment/CommentWebModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Web/Models/Post/Comment/CommentWebModel.cs')
-rw-r--r--src/DevHive.Web/Models/Post/Comment/CommentWebModel.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/DevHive.Web/Models/Post/Comment/CommentWebModel.cs b/src/DevHive.Web/Models/Post/Comment/CommentWebModel.cs
index d66e5c9..590851d 100644
--- a/src/DevHive.Web/Models/Post/Comment/CommentWebModel.cs
+++ b/src/DevHive.Web/Models/Post/Comment/CommentWebModel.cs
@@ -1,12 +1,25 @@
using System;
+using System.ComponentModel.DataAnnotations;
+using System.Diagnostics.CodeAnalysis;
namespace DevHive.Web.Models.Post.Comment
{
public class CommentWebModel
{
+ [NotNull]
+ [Required]
public Guid IssuerId { get; set; }
+
+ [NotNull]
+ [Required]
public Guid PostId { get; set; }
+
+ [NotNull]
+ [Required]
public string Message { get; set; }
+
+ [NotNull]
+ [Required]
public DateTime TimeCreated { get; set; }
}
}