namespace LCU.Library.Internal.MemberPreferencesApiModels.Entities; public static class DeliveryPreference { public const string Paper = "Paper"; public const string Electronic = "Electronic"; public const string Hold = "Hold"; public const string Microfiche = "Microfiche"; public static string MapMailCodeToPreference(string mailCode) { if (string.IsNullOrWhiteSpace(mailCode)) return ""; switch (mailCode) { case "3": return DeliveryPreference.Hold; case "4": return DeliveryPreference.Microfiche; case "5": return DeliveryPreference.Electronic; default: return DeliveryPreference.Paper; } } }