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