Add RoleName Ro CurrentAccountInfo

Add Payment Transaction Time in Query
This commit is contained in:
MahanCh
2025-07-12 16:29:14 +03:30
parent ba994a5802
commit 00012cef52
2 changed files with 2 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ public class AuthHelper : IAuthHelper
result.SubAccountId = long.Parse(claims.FirstOrDefault(x => x.Type == "SubAccountId").Value);
result.WorkshopName = claims.FirstOrDefault(x => x is { Type: "WorkshopName" })?.Value;
result.Permissions = Tools.DeserializeFromBsonList<int>(claims.FirstOrDefault(x => x is { Type: "permissions" })?.Value);
result.RoleName = claims.FirstOrDefault(x => x is { Type: "RoleName" })?.Value;
return result;
}

View File

@@ -82,6 +82,7 @@ public class PaymentTransactionRepository:RepositoryBase<long, PaymentTransactio
Amount = x.Amount,
TransactionId = x.TransactionId,
PaymentDate = x.TransactionDate.ToFarsi(),
PaymentTime = $"{x.TransactionDate:HH:mm}"
})
.ToList();