10 lines
258 B
C#
10 lines
258 B
C#
using FluentValidation;
|
|
|
|
public class AcknowledgeAlertRequestValidator : AbstractValidator<AcknowledgeAlertRequest>
|
|
{
|
|
public AcknowledgeAlertRequestValidator()
|
|
{
|
|
RuleFor(x => x.Note).MaximumLength(1000).When(x => x.Note is not null);
|
|
}
|
|
}
|