aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Adamonis <dona0169@edu.easj.dk>2017-05-26 18:32:16 +0200
committerDonatas Adamonis <dona0169@edu.easj.dk>2017-05-26 18:32:16 +0200
commitd4ccb42366044c86d54fbbdefae491d436b7cf42 (patch)
treee9283bce51240f9d165cc5000d05b7971e010d17 /ApartmentManager/HousingWebApi/Models
parent8e8f14bcd7e7a6d30535e65e4b73506fb353c535 (diff)
final version of Defect comments
Diffstat (limited to 'ApartmentManager/HousingWebApi/Models')
-rw-r--r--ApartmentManager/HousingWebApi/Models/ChangeComment.cs5
-rw-r--r--ApartmentManager/HousingWebApi/Models/DefectComment.cs5
2 files changed, 10 insertions, 0 deletions
diff --git a/ApartmentManager/HousingWebApi/Models/ChangeComment.cs b/ApartmentManager/HousingWebApi/Models/ChangeComment.cs
index 3c5d8d8..b8ee58e 100644
--- a/ApartmentManager/HousingWebApi/Models/ChangeComment.cs
+++ b/ApartmentManager/HousingWebApi/Models/ChangeComment.cs
@@ -17,6 +17,11 @@ namespace HousingWebApi
public string Comment { get; set; }
+ [StringLength(50)]
+ public string Name { get; set; }
+
+ public DateTime? Date { get; set; }
+
public virtual ApartmentChange ApartmentChange { get; set; }
}
}
diff --git a/ApartmentManager/HousingWebApi/Models/DefectComment.cs b/ApartmentManager/HousingWebApi/Models/DefectComment.cs
index c65bac2..41733aa 100644
--- a/ApartmentManager/HousingWebApi/Models/DefectComment.cs
+++ b/ApartmentManager/HousingWebApi/Models/DefectComment.cs
@@ -16,6 +16,11 @@ namespace HousingWebApi
public string Comment { get; set; }
+ [StringLength(50)]
+ public string Name { get; set; }
+
+ public DateTime? Date { get; set; }
+
public virtual Defect Defect { get; set; }
}
}