Exemple #1
0
 public void RegisterTOB()
 {
     try
     {
         if (LocalTOBKUIBO.GetAll().Count < 1)
         {
             //Get registration Id from service and insert into localDB.
             _registerId = GetRegisterId();
             TOBRegister tobRegister = new TOBRegister();
             tobRegister.RegisterId = new Guid(_registerId);
             LocalTOBKUIBO.Insert(tobRegister);
             LocalTOBKUIBO.SaveChanges();
         }
         else
         {
             _registerId = GetRegisterIDFromLocal();
         }
     }
     catch (Exception ex)
     {
         TOB.Logger.TOBLogger.WriteDebugInfo(ex.Message);
     }
 }
Exemple #2
0
partial         void InsertTOBRegister(TOBRegister instance);
Exemple #3
0
partial         void UpdateTOBRegister(TOBRegister instance);
Exemple #4
0
partial         void DeleteTOBRegister(TOBRegister instance);