private bool CheckTempDB() { try { SQLiteFunctionRepository tempRep = new SQLiteFunctionRepository(); UserRepository repo = new UserRepository(); if (!tempRep.IsTempDBExists()) { tempRep.CreateSqlLiteDatabase(); repo.CreateUserTable(); } return(true); } catch (Exception ex) { MessageBox.Show("Error:" + (ex.InnerException != null ? ex.InnerException.Message : ex.Message)); return(false); } }