private static int ExcuteInsertReturnRowID(string sql, string functionName) { int result; try { result = SQLiteDBHelper.ExcuteInsertReturnRowID(sql); } catch (Exception e) { result = -1; Log.Write(functionName + " failed. exception is: " + e.Message); } return(result); }