Skip to content

Commit 69be393

Browse files
fix that projects not deserializeable and entryType should not required in model #2300
1 parent d3892a4 commit 69be393

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Models/CitationModels.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public class CitationDataModel
4343
[XmlElement("version")]
4444
public string Version { get; set; }
4545

46-
[XmlElement("projects")]
46+
[XmlArray("projects")]
47+
[XmlArrayItem("project")]
4748
public List<string> Projects { get; set; }
4849

4950
[XmlElement("year")]
@@ -70,8 +71,6 @@ public class CitationDataModel
7071
//public string EntityType { get; set; }
7172

7273
[XmlElement("entryType")]
73-
[Required(ErrorMessage = "Entry Type is required")]
74-
[MinLength(1, ErrorMessage = "Entry Type cannot be empty")]
7574
public string EntryType { get; set; }
7675

7776
[XmlElement("entityName")]

0 commit comments

Comments
 (0)