// public int GetLastID() { if (this.data == null) { this.data = new DaiLyInternet_Data(); } return(Convert.ToInt32(this.data.GetLastID())); }
public int LayMaMax() { DaiLyInternet_Data Int = new DaiLyInternet_Data(); DataTable table = Int.LayMaMax(); try { int i = Convert.ToInt32(table.Rows[0][0].ToString()); return(++i); } catch (Exception e) { e.ToString(); return(1); } }