Generator Changes at 11/25/2025 2:22:16 AM +03:30

This commit is contained in:
masoodafar-web
2025-11-25 02:25:35 +03:30
parent c20b2432fb
commit 50ccd10e24
25 changed files with 783 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
namespace FrontOffice.BFF.Application.UserWalletCQ.Commands.TransferUserWalletBallance;
public record TransferUserWalletBallanceCommand : IRequest<Unit>
{
}

View File

@@ -0,0 +1,16 @@
namespace FrontOffice.BFF.Application.UserWalletCQ.Commands.TransferUserWalletBallance;
public class TransferUserWalletBallanceCommandHandler : IRequestHandler<TransferUserWalletBallanceCommand, Unit>
{
private readonly IApplicationContractContext _context;
public TransferUserWalletBallanceCommandHandler(IApplicationContractContext context)
{
_context = context;
}
public async Task<Unit> Handle(TransferUserWalletBallanceCommand request, CancellationToken cancellationToken)
{
//TODO: Implement your business logic
return new Unit();
}
}

View File

@@ -0,0 +1,14 @@
namespace FrontOffice.BFF.Application.UserWalletCQ.Commands.TransferUserWalletBallance;
public class TransferUserWalletBallanceCommandValidator : AbstractValidator<Unit>
{
public TransferUserWalletBallanceCommandValidator()
{
}
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
{
var result = await ValidateAsync(ValidationContext<Unit>.CreateWithOptions((Unit)model, x => x.IncludeProperties(propertyName)));
if (result.IsValid)
return Array.Empty<string>();
return result.Errors.Select(e => e.ErrorMessage);
};
}