12 lines
219 B
C#
12 lines
219 B
C#
using FluentValidation;
|
|
|
|
namespace zero.Pages;
|
|
|
|
public class PageValidator : ZeroValidator<Page>
|
|
{
|
|
public PageValidator()
|
|
{
|
|
RuleFor(x => x.Name).NotEmpty();
|
|
RuleFor(x => x.PageTypeAlias).NotEmpty();
|
|
}
|
|
} |