public static int GetLastConfigID() { string sqlCommand = String.Format("select max(cfID) from Config"); Sql sql = new Sql(); return sql.selectMaxConfigID(sqlCommand); }