initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace Indotalent.Features.Sales.SalesQuotation.Cqrs;
|
||||
|
||||
public class CreateSalesQuotationValidator : AbstractValidator<CreateSalesQuotationRequest>
|
||||
{
|
||||
public CreateSalesQuotationValidator()
|
||||
{
|
||||
RuleFor(x => x.QuotationDate).NotEmpty().WithMessage("Date is required");
|
||||
RuleFor(x => x.CustomerId).NotEmpty().WithMessage("Customer is required");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user