Generator Changes at 11/16/2025 1:53:26 AM +03:30

This commit is contained in:
masoodafar-web
2025-11-16 01:58:49 +03:30
parent 8f327158d5
commit 5f65c119e1
5 changed files with 19 additions and 17 deletions

View File

@@ -2,8 +2,10 @@ namespace FrontOffice.BFF.Application.UserCQ.Commands.AcceptContract;
public record AcceptContractCommand : IRequest<Unit>
{
//کد otp
public string? Code { get; init; }
public string Code { get; init; }
//فایل قرارداد
public string? ContractHtml { get; init; }
public string ContractHtml { get; init; }
//شناسه یکتای امضا
public string SignGuid { get; init; }
}

View File

@@ -3,6 +3,12 @@ public class AcceptContractCommandValidator : AbstractValidator<AcceptContractCo
{
public AcceptContractCommandValidator()
{
RuleFor(model => model.Code)
.NotEmpty();
RuleFor(model => model.ContractHtml)
.NotEmpty();
RuleFor(model => model.SignGuid)
.NotEmpty();
}
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
{