blob: bc0a9fe4fc095a611cda16b6c5c8ed63cc0e2d8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using System;
namespace TimelineApp.Models.Validation
{
public class UsernameValidator : NameValidator
{
}
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter,
AllowMultiple = false)]
public class UsernameAttribute : ValidateWithAttribute
{
public UsernameAttribute()
: base(typeof(UsernameValidator))
{
}
}
}
|