initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace Indotalent.Features.Purchase.PurchaseOrder.Cqrs;
|
||||
|
||||
public class CreatePurchaseOrderValidator : AbstractValidator<CreatePurchaseOrderRequest>
|
||||
{
|
||||
public CreatePurchaseOrderValidator()
|
||||
{
|
||||
RuleFor(x => x.OrderDate).NotEmpty().WithMessage("Date is required");
|
||||
RuleFor(x => x.VendorId).NotEmpty().WithMessage("Vendor is required");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user