Example #1
0
 public static string GetStatusFromAbbreviation(string abbreviation)
 {
     return(StatusWithAbbreviations.FirstOrDefault(s => string.Equals(s.Abbreviation, abbreviation, StringComparison.InvariantCultureIgnoreCase)).Status);
 }
Example #2
0
 public static string GetAbbreviationFromStatus(string status)
 {
     return(StatusWithAbbreviations.FirstOrDefault(s => s.Status == status).Abbreviation);
 }