initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace Indotalent.Features.Sales.DeliveryOrder.Cqrs;
|
||||
|
||||
public class CreateDeliveryOrderValidator : AbstractValidator<CreateDeliveryOrderRequest>
|
||||
{
|
||||
public CreateDeliveryOrderValidator()
|
||||
{
|
||||
RuleFor(x => x.DeliveryDate).NotEmpty().WithMessage("Delivery Date is required");
|
||||
RuleFor(x => x.SalesOrderId).NotEmpty().WithMessage("Sales Order reference is required");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user