12 lines
364 B
C#
12 lines
364 B
C#
using FluentValidation;
|
|
|
|
namespace Indotalent.Features.Purchase.DebitNote.Cqrs;
|
|
|
|
public class UpdateDebitNoteValidator : AbstractValidator<UpdateDebitNoteRequest>
|
|
{
|
|
public UpdateDebitNoteValidator()
|
|
{
|
|
RuleFor(x => x.Id).NotEmpty();
|
|
RuleFor(x => x.PurchaseReturnId).NotEmpty().WithMessage("Purchase Return reference is required");
|
|
}
|
|
} |