public static int GetLastProjectID() { string sqlCommand = String.Format("select max(pID) from Project"); Sql sql = new Sql(); return sql.selectMaxProjectAndMapID(sqlCommand); }