|
@@ -50,7 +50,6 @@ namespace Exam.Repository.Sqlsugar.Validators.Sourcewares
|
|
|
{
|
|
|
base.BaseValidateRule();
|
|
|
RuleFor(m => m.Name).NotEmpty().WithMessage(x => string.Format(ErrorMessage.IsRequired, x.GetType().GetDescription(nameof(SourcewareCategory.Name))));
|
|
|
- RuleFor(m => m.ParentId).NotEmpty().WithMessage(x => string.Format(ErrorMessage.IsRequired, x.GetType().GetDescription(nameof(SourcewareCategory.ParentId))));
|
|
|
RuleFor(m => m.SortIndex).NotEmpty().WithMessage(x => string.Format(ErrorMessage.IsRequired, x.GetType().GetDescription(nameof(SourcewareCategory.SortIndex))));
|
|
|
}
|
|
|
|