feat: add IsActive field to UserClubFeatures for admin management

This commit is contained in:
masoodafar-web
2025-12-12 01:40:26 +03:30
parent aa66ca10c8
commit ff1c1d5d61
68 changed files with 11456 additions and 198 deletions
@@ -86,7 +86,7 @@ public class ApproveManualPaymentCommandHandler : IRequestHandler<ApproveManualP
Amount = manualPayment.Amount,
Description = $"پرداخت دستی - {manualPayment.Type} - {manualPayment.Description}",
PaymentStatus = PaymentStatus.Success,
PaymentDate = DateTime.UtcNow,
PaymentDate = DateTime.Now,
RefId = manualPayment.ReferenceNumber,
Type = MapToTransactionType(manualPayment.Type)
};
@@ -219,7 +219,7 @@ public class ApproveManualPaymentCommandHandler : IRequestHandler<ApproveManualP
// 7. به‌روزرسانی ManualPayment
manualPayment.Status = ManualPaymentStatus.Approved;
manualPayment.ApprovedBy = approvedById;
manualPayment.ApprovedAt = DateTime.UtcNow;
manualPayment.ApprovedAt = DateTime.Now;
manualPayment.TransactionId = transaction.Id;
await _context.SaveChangesAsync(cancellationToken);
@@ -71,7 +71,7 @@ public class RejectManualPaymentCommandHandler : IRequestHandler<RejectManualPay
// 4. رد درخواست
manualPayment.Status = ManualPaymentStatus.Rejected;
manualPayment.ApprovedBy = rejectedById;
manualPayment.ApprovedAt = DateTime.UtcNow;
manualPayment.ApprovedAt = DateTime.Now;
manualPayment.RejectionReason = request.RejectionReason;
await _context.SaveChangesAsync(cancellationToken);