public void employee_clients_delete(int ID) { employee_clients.Delete(ID); Insert_employee_clients_GridView.DataBind(); Update_employee_clients_GridView.DataBind(); Delete_employee_clients_GridView.DataBind(); }
public employee_clients employee_clients_insert() { employee_clients.client_id = Convert.ToInt32(Insert_client_id_txt.Text); employee_clients.employee_id = Convert.ToInt32(Insert_employee_id_txt.Text); employee_clients = employee_clients.Insert(employee_clients); Insert_employee_clients_GridView.DataBind(); Update_employee_clients_GridView.DataBind(); Delete_employee_clients_GridView.DataBind(); return(employee_clients); }
public employee_clients employee_clients_update(int ID) { employee_clients = employee_clients.Select(ID); employee_clients.emp_client_id = Convert.ToInt32(Update_emp_client_id_txt.Text); employee_clients.client_id = Convert.ToInt32(Update_client_id_txt.Text); employee_clients.employee_id = Convert.ToInt32(Update_employee_id_txt.Text); employee_clients.Update(employee_clients); Insert_employee_clients_GridView.DataBind(); Update_employee_clients_GridView.DataBind(); Delete_employee_clients_GridView.DataBind(); return(employee_clients); }