public string GetEntityName(int entityTypeId) { var tr = TicketEntities.FirstOrDefault(x => x.EntityTypeId == entityTypeId); if (tr != null) { return(tr.EntityName); } return(""); }
public string GetEntityFieldValue(string fieldName) { var tr = TicketEntities.FirstOrDefault(x => x.HasCustomData(fieldName)); return(tr != null?tr.GetCustomData(fieldName) : ""); }
public string GetEntityFieldValue(int entityTypeId, string fieldName) { var tr = TicketEntities.FirstOrDefault(x => x.EntityTypeId == entityTypeId); return(tr != null?tr.GetCustomData(fieldName) : ""); }