public void ScheduleCategorySelectAll(DataGridView ScheduleList) { try { raceScheduleCategory = new DAL.RaceScheduleCategory(); PopulateDataLayer(); ScheduleList.DataSource = raceScheduleCategory.RaceScheduleCategorySelectAll().Tables[0]; } catch (Exception ex) { throw ex; } }
public DataTable ScheduleCategorySelectAll() { try { raceScheduleCategory = new DAL.RaceScheduleCategory(); DataTable dataResult = new DataTable(); PopulateDataLayer(); dataResult = raceScheduleCategory.RaceScheduleCategorySelectAll().Tables[0]; return(dataResult); } catch (Exception ex) { throw ex; } }