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