summaryrefslogtreecommitdiff
path: root/Project-Unite/Models/WikiModels.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-06 11:22:05 -0400
committerMichael <[email protected]>2017-04-06 11:22:05 -0400
commitf7756ab7cc07265f5c54c4cfa5713be993d80d00 (patch)
treee38446157d31dd651a12d3820ac2446e865d8083 /Project-Unite/Models/WikiModels.cs
parente6aa1c4fd5ead9fbe6ca5d31200c16acf293afd0 (diff)
downloadproject-unite-f7756ab7cc07265f5c54c4cfa5713be993d80d00.tar.gz
project-unite-f7756ab7cc07265f5c54c4cfa5713be993d80d00.tar.bz2
project-unite-f7756ab7cc07265f5c54c4cfa5713be993d80d00.zip
Add wiki list to dev CP
Diffstat (limited to 'Project-Unite/Models/WikiModels.cs')
-rw-r--r--Project-Unite/Models/WikiModels.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Project-Unite/Models/WikiModels.cs b/Project-Unite/Models/WikiModels.cs
index ac6c6cb..dffed26 100644
--- a/Project-Unite/Models/WikiModels.cs
+++ b/Project-Unite/Models/WikiModels.cs
@@ -1,10 +1,32 @@
using System;
using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
+using System.Web.Mvc;
namespace Project_Unite.Models
{
+ public class AddWikiCategoryViewModel
+ {
+ public AddWikiCategoryViewModel()
+ {
+
+ }
+
+ public List<SelectListItem> Parents { get; set; }
+
+
+ [Required(AllowEmptyStrings = false, ErrorMessage ="Please name your category.")]
+ [MinLength(5, ErrorMessage ="Your category's name must be at least 5 characters long.")]
+ [MaxLength(25, ErrorMessage ="Your category's name must be at most 25 characters long.")]
+ public string Name { get; set; }
+
+
+ [Required(AllowEmptyStrings = false, ErrorMessage = "Please select a parent category.")]
+ public string ParentId { get; set; }
+ }
+
public class WikiCategory
{
public string Id { get; set; }