Files
2026-07-21 14:14:44 +07:00

12 lines
401 B
C#

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");
}
}