internal static void RemoveMemory(Provider objectValue)
 {
     if (DicProvider.ContainsKey(objectValue.Id))
     {
         DicProvider.Remove(objectValue.Id);
     }
 }
 public static bool IsExistProvider(int id)
 {
     if (DicProvider.ContainsKey(id))
     {
         return(true);
     }
     return(false);
 }
 public static Provider GetProvider(int id)
 {
     if (DicProvider.ContainsKey(id))
     {
         return(DicProvider[id].Clone() as Provider);
     }
     LogTo.Error("Not get Provider by id = " + id);
     return(null);
 }