public void ClubSelectAll(DataGridView ClubList) { try { club = new DAL.Club(); PopulateDataLayer(); ClubList.DataSource = club.ClubSelectAll().Tables[0]; } catch (Exception ex) { throw ex; } }
public DataTable ClubSelectAll() { try { DataTable dtResult; club = new DAL.Club(); PopulateDataLayer(); dtResult = club.ClubSelectAll().Tables[0]; return(dtResult); } catch (Exception ex) { throw ex; } }