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; } }
public Boolean Save() { try { Boolean status = false; raceScheduleCategory = new DAL.RaceScheduleCategory(); PopulateDataLayer(); raceScheduleCategory.Save(); MessageBox.Show("Schedule Category Record Save!", "Record Save"); status = true; return(status); } catch (Exception ex) { throw ex; } }
public Boolean ScheduleCategoryDelete() { try { Boolean status = false; raceScheduleCategory = new DAL.RaceScheduleCategory(); PopulateDataLayer(); raceScheduleCategory.RaceScheduleCategoryDelete(); MessageBox.Show("Record Successfully Reset!", "Reset Record"); status = true; return(status); } catch (Exception ex) { throw ex; } }