initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace Indotalent.Features.Purchase.Bill.Cqrs;
|
||||
|
||||
public class UpdateBillValidator : AbstractValidator<UpdateBillRequest>
|
||||
{
|
||||
public UpdateBillValidator()
|
||||
{
|
||||
RuleFor(x => x.Id).NotEmpty();
|
||||
RuleFor(x => x.PurchaseOrderId).NotEmpty().WithMessage("Purchase Order is required");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user