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

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))
        {

        }
    }
}