17 lines
529 B
C#
17 lines
529 B
C#
namespace BackOffice.BFF.Application.ManualPaymentCQ.Commands.RejectManualPayment;
|
|
|
|
public class RejectManualPaymentCommandValidator : AbstractValidator<RejectManualPaymentCommand>
|
|
{
|
|
public RejectManualPaymentCommandValidator()
|
|
{
|
|
RuleFor(x => x.ManualPaymentId)
|
|
.GreaterThan(0)
|
|
.WithMessage("شناسه پرداخت دستی نامعتبر است.");
|
|
|
|
RuleFor(x => x.RejectionReason)
|
|
.NotEmpty()
|
|
.WithMessage("دلیل رد الزامی است.");
|
|
}
|
|
}
|
|
|