public void LocationSelectAll(DataGridView locationList) { try { location = new DAL.Location(); PopulateDataLayer(); locationList.DataSource = location.LocationSelectAll().Tables[0]; } catch (Exception ex) { throw ex; } }
public DataTable LocationSelectAll() { try { DataTable dtLocation; location = new DAL.Location(); PopulateDataLayer(); dtLocation = location.LocationSelectAll().Tables[0]; return(dtLocation); } catch (Exception ex) { throw ex; } }