aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Validation/TimelineNameValidator.cs
blob: f1ab54e86190f4b7cc23e51647fcb90dd6ad2fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;

namespace Timeline.Models.Validation
{
    public class TimelineNameValidator : NameValidator
    {
    }

    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter,
        AllowMultiple = false)]
    public class TimelineNameAttribute : ValidateWithAttribute
    {
        public TimelineNameAttribute()
            : base(typeof(TimelineNameValidator))
        {

        }
    }
}