2024-03-06 15:56:52 +10:00
|
|
|
|
using FluentValidation;
|
|
|
|
|
|
using PARR.API.Contracts.V1.Requests;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.API.Validators
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ProcessValidator : AbstractValidator<ProcessRequest>
|
|
|
|
|
|
{
|
|
|
|
|
|
public ProcessValidator()
|
|
|
|
|
|
{
|
2024-05-20 11:38:48 +10:00
|
|
|
|
RuleFor(t => t.Name).NotEmpty().NotNull();
|
2024-03-06 15:56:52 +10:00
|
|
|
|
|
2024-05-20 11:38:48 +10:00
|
|
|
|
RuleFor(t => t.EsppId).NotEmpty().NotNull();
|
2024-03-06 15:56:52 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|