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); } }
partial void InsertTOBRegister(TOBRegister instance);
partial void UpdateTOBRegister(TOBRegister instance);
partial void DeleteTOBRegister(TOBRegister instance);