public static string GetTransferTypeDescription(TransferTypes type) { if (type == TransferTypes.STORETOSTORE) { return("SHOP TO SHOP"); } else if (type == TransferTypes.JORET) { return("REFURB"); } return(type.ToString()); }
public static string GetTransferTypeDisplayName(TransferTypes transferType) { return(transferType.GetAttribute <DisplayAttribute>()?.Name ?? transferType.ToString()); }