public DataTable LoadAll() { PhotoDAC odac = new PhotoDAC(this); DataTable table = odac.SelectAll(); base.MaxPageIndex = odac.MaxPageIndex; return table; }
// Methods public bool AddOne() { PhotoDAC odac = new PhotoDAC(this); if (odac.InsertOne() >= Utility.ONE_ROW_AFFECTED) { base.PhotoID = odac.PhotoID; return true; } return false; }