public void agency_employees_delete(int ID) { agency_employees.Delete(ID); Insert_agency_employees_GridView.DataBind(); Update_agency_employees_GridView.DataBind(); Delete_agency_employees_GridView.DataBind(); }
public agency_employees agency_employees_insert() { agency_employees.agency_id = Convert.ToInt32(Insert_agency_id_txt.Text); agency_employees.employee_id = Convert.ToInt32(Insert_employee_id_txt.Text); agency_employees = agency_employees.Insert(agency_employees); Insert_agency_employees_GridView.DataBind(); Update_agency_employees_GridView.DataBind(); Delete_agency_employees_GridView.DataBind(); return(agency_employees); }
public agency_employees agency_employees_update(int ID) { agency_employees = agency_employees.Select(ID); agency_employees.agency_empl_id = Convert.ToInt32(Update_agency_empl_id_txt.Text); agency_employees.agency_id = Convert.ToInt32(Update_agency_id_txt.Text); agency_employees.employee_id = Convert.ToInt32(Update_employee_id_txt.Text); agency_employees.Update(agency_employees); Insert_agency_employees_GridView.DataBind(); Update_agency_employees_GridView.DataBind(); Delete_agency_employees_GridView.DataBind(); return(agency_employees); }