feat: add IsActive field to UserClubFeatures for admin management
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user