diff options
Diffstat (limited to 'BackEnd/Timeline/Models')
-rw-r--r-- | BackEnd/Timeline/Models/Validation/PositiveIntegerAttribute.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Models/Validation/PositiveIntegerAttribute.cs b/BackEnd/Timeline/Models/Validation/PositiveIntegerAttribute.cs new file mode 100644 index 00000000..78e2f0b4 --- /dev/null +++ b/BackEnd/Timeline/Models/Validation/PositiveIntegerAttribute.cs @@ -0,0 +1,12 @@ +using System.ComponentModel.DataAnnotations; + +namespace Timeline.Models.Validation +{ + public class PositiveIntegerAttribute : RangeAttribute + { + public PositiveIntegerAttribute() : base(1, int.MaxValue) + { + } + } +} + |