Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Web / Models / Post / CreatePostWebModel.cs
diff options
context:
space:
mode:
Commitff91162eb83dcf19402240ae8fa06f70cbf2b9e0 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-01-30 11:31:21 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-01-30 11:31:21 +0200
Files2948559f7326c8221f799d4aaf794c5e00c06bd9 /src/DevHive.Web/Models/Post/CreatePostWebModel.cs
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.tar
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.tar.gz
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.zip
Parentdde27f48caf455f9b342d68b0a4a5c95f302b9f7 (diff)
Separated comment models, controler and service from post's
1 files changed, 16 insertions, 0 deletions
-rw-r--r--src/DevHive.Web/Models/Post/CreatePostWebModel.cs16
diff --git a/src/DevHive.Web/Models/Post/CreatePostWebModel.cs b/src/DevHive.Web/Models/Post/CreatePostWebModel.cs
new file mode 100644
index 0000000..256055a
--- /dev/null
+++ b/src/DevHive.Web/Models/Post/CreatePostWebModel.cs
@@ -0,0 +1,16 @@
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Diagnostics.CodeAnalysis;
+using Microsoft.AspNetCore.Http;
+
+namespace DevHive.Web.Models.Post
+{
+ public class CreatePostWebModel
+ {
+ [NotNull]
+ [Required]
+ public string Message { get; set; }
+
+ public List<IFormFile> Files { get; set; }
+ }
+}