fix userRole validator. IdType can be anything

This commit is contained in:
Фролов 2022-02-02 11:08:17 +05:00
parent 2598738c46
commit 981ae016c7

View File

@ -9,8 +9,6 @@ namespace AsbCloudInfrastructure.Validators
{
RuleFor(x => x.Caption).Length(0, 50)
.WithMessage("Допустимая длина названия роли от 1 до 50 символов");
RuleFor(x => x.IdType).GreaterThan(0)
.WithMessage("Id типа роли не может быть ниже 1");
}
}
}