forked from ddrilling/AsbCloudServer
fix userRole validator. IdType can be anything
This commit is contained in:
parent
2598738c46
commit
981ae016c7
@ -9,8 +9,6 @@ namespace AsbCloudInfrastructure.Validators
|
|||||||
{
|
{
|
||||||
RuleFor(x => x.Caption).Length(0, 50)
|
RuleFor(x => x.Caption).Length(0, 50)
|
||||||
.WithMessage("Допустимая длина названия роли от 1 до 50 символов");
|
.WithMessage("Допустимая длина названия роли от 1 до 50 символов");
|
||||||
RuleFor(x => x.IdType).GreaterThan(0)
|
|
||||||
.WithMessage("Id типа роли не может быть ниже 1");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user