Пример #1
0
 private static string GetFromState(string stateAbbrv, FixCodeVantageExport service, out PPExportVTMatch ppExport)
 {
     if (byStateDict.TryGetValue(stateAbbrv, out SortedDictionary <string, PPExportVTMatch> state))
     {
         if (!state.TryGetValue(service.CustomerID, out ppExport))
         {
             return("ppExport not found: " + service.CustomerID + " - " + service.StateProvince);
         }
         else
         {
             return(null);
         }
     }
     else
     {
         ppExport = null;
         return("State not found: " + service.StateProvince);
     }
 }
Пример #2
0
 private static string GetFromCity(SortedDictionary <string, PPExportVTMatch> city, FixCodeVantageExport service, out PPExportVTMatch ppExport) =>
 city.TryGetValue(service.CustomerID, out ppExport) ? null : String.Format(
     "ppExport not found: {0} - {1}, {2}",
     service.CustomerID,
     service.City,
     service.StateProvince
     );