aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Validation
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd/Timeline/Models/Validation')
-rw-r--r--BackEnd/Timeline/Models/Validation/TimelinePostContentTypeValidator.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/BackEnd/Timeline/Models/Validation/TimelinePostContentTypeValidator.cs b/BackEnd/Timeline/Models/Validation/TimelinePostContentTypeValidator.cs
index 483cce06..b65c846c 100644
--- a/BackEnd/Timeline/Models/Validation/TimelinePostContentTypeValidator.cs
+++ b/BackEnd/Timeline/Models/Validation/TimelinePostContentTypeValidator.cs
@@ -1,16 +1,17 @@
using System;
+using System.Linq;
namespace Timeline.Models.Validation
{
- public class TimelinePostContentTypeValidator : StringSetValidator
+ public class TimelinePostDataKindValidator : StringSetValidator
{
- public TimelinePostContentTypeValidator() : base(TimelinePostContentTypes.AllTypes) { }
+ public TimelinePostDataKindValidator() : base(TimelinePostDataKind.AllTypes.ToArray()) { }
}
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
- public class TimelinePostContentTypeAttribute : ValidateWithAttribute
+ public class TimelinePostDataKindAttribute : ValidateWithAttribute
{
- public TimelinePostContentTypeAttribute() : base(typeof(TimelinePostContentTypeValidator))
+ public TimelinePostDataKindAttribute() : base(typeof(TimelinePostDataKindValidator))
{
}