Add RoleName Ro CurrentAccountInfo
Add Payment Transaction Time in Query
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user