Example #1
0
 public static int?DynamicsID(this ProviderProfile profile)
 {
     return(profile.Name.ToUpper() switch
     {
         "WORKSAFEBC" => InformationSourceType.WorkSafeBC.Value,
         "MH_HCIM" => InformationSourceType.HCIM.Value,
         "MH_RAPIDE" => InformationSourceType.RAPIDE.Value,
         "MH_RAPIDR" => InformationSourceType.RAPIDR.Value,
         _ => Enumeration.GetAll <InformationSourceType>().FirstOrDefault(m => m.Name.Equals(profile.Name, StringComparison.OrdinalIgnoreCase))?.Value
     });
Example #2
0
 public static int?DynamicsID(this ProviderProfile profile)
 {
     return(Enumeration.GetAll <InformationSourceType>().FirstOrDefault(m => m.Name.Equals(profile.Name, StringComparison.OrdinalIgnoreCase))?.Value);
 }