Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Web / Models / Post / UpdatePostWebModel.cs
diff options
context:
space:
mode:
Commit979a86a14cd658b5346279901ac8bca667c373d3 (patch)
Author
 transtrike <transtrike@gmail.com>
2021-01-31 12:58:44 +0200
Committer
 transtrike <transtrike@gmail.com>
2021-01-31 12:58:44 +0200
Files9791cf02c0838a4d6392e3651f93eeed283acb57 /src/DevHive.Web/Models/Post/UpdatePostWebModel.cs
DevHive-979a86a14cd658b5346279901ac8bca667c373d3.tar
DevHive-979a86a14cd658b5346279901ac8bca667c373d3.tar.gz
DevHive-979a86a14cd658b5346279901ac8bca667c373d3.zip
Parent9d5f4628a3a75871b47ac6a9f9c0419748d9dfb8 (diff)
Parentb8743cfdd0515e4d07ea5c926be1d9ade5340a91 (diff)
Username added to JWT; Promotion to Admin fixed
1 files changed, 21 insertions, 0 deletions
-rw-r--r--src/DevHive.Web/Models/Post/UpdatePostWebModel.cs21
diff --git a/src/DevHive.Web/Models/Post/UpdatePostWebModel.cs b/src/DevHive.Web/Models/Post/UpdatePostWebModel.cs
new file mode 100644
index 0000000..a0c9b61
--- /dev/null
+++ b/src/DevHive.Web/Models/Post/UpdatePostWebModel.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Diagnostics.CodeAnalysis;
+using Microsoft.AspNetCore.Http;
+
+namespace DevHive.Web.Models.Post
+{
+ public class UpdatePostWebModel
+ {
+ [Required]
+ [NotNull]
+ public Guid PostId { get; set; }
+
+ [NotNull]
+ [Required]
+ public string NewMessage { get; set; }
+
+ public List<IFormFile> Files { get; set; } = new();
+ }
+}