2021-11-19 16:11:12 +01:00
|
|
|
using FluentValidation;
|
|
|
|
|
|
2021-11-20 13:52:28 +01:00
|
|
|
namespace zero.Pages;
|
2021-11-19 16:11:12 +01:00
|
|
|
|
|
|
|
|
public class PageValidator : ZeroValidator<Page>
|
|
|
|
|
{
|
|
|
|
|
public PageValidator()
|
|
|
|
|
{
|
|
|
|
|
RuleFor(x => x.Name).NotEmpty();
|
|
|
|
|
RuleFor(x => x.PageTypeAlias).NotEmpty();
|
|
|
|
|
}
|
|
|
|
|
}
|