public void ClubSelectAll(DataGridView ClubList) { try { club = new DAL.Club(); PopulateDataLayer(); ClubList.DataSource = club.ClubSelectAll().Tables[0]; } catch (Exception ex) { throw ex; } }
public DataTable ClubSearchByKey() { try { club = new DAL.Club(); DataTable dataResult = new DataTable(); PopulateDataLayer(); dataResult = club.ClubSearchByKey().Tables[0]; return(dataResult); } 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; } }
public Boolean Save() { try { Boolean status = false; club = new DAL.Club(); PopulateDataLayer(); club.Save(); MessageBox.Show("Club Record Save!", "Record Save"); status = true; return(status); } catch (Exception ex) { throw ex; } }
public Boolean ClubDelete() { try { Boolean status = false; club = new DAL.Club(); PopulateDataLayer(); club.ClubDelete(); MessageBox.Show("Record Successfully Deleted!", "Delete Record"); status = true; return(status); } catch (Exception ex) { throw ex; } }