Code: Select all
StatusDesc
ab
Code: Select all
var status = await _context.Statuses
.ToDictionaryAsync(s => s.id, s => StatusDesc);
Die TR wurde bezahlt
Was ich gerne tun möchte, ist, die Benutzerdeschreibung mit dem StatusDesc in der VAR -Anweisung abzurufen, aber alle meine Versuche haben zu Fehlern geführt. Ich habe "Definition" in die Status "die Benutzerdekription als verfügbares Feld enthält.
Code: Select all
TrPaymentStatus = status.TryGetValue(pc.TrProcessStatusId, out var value) ? value : null, *// current code*
UserDescription = userDescription.TryGetValue(pc.UserDescription, out var value) ? value : null, *// what I would like to add*