protected void OnDepartmentSelected(object sender, DepartmentSelectedEventArgs args) { string department = args.Department; var employees = this.Repository.GetEmployees(department); this.View.BindEmployees(employees); }
protected void OnDepartmentSelected(object sender, DepartmentSelectedEventArgs args) { string department = args.Department; var employees = this.Repository.GetEmployees(department); this.View.BindEmployees(employees); }
protected void ButtonSearch_Click(object sender, EventArgs e) { string department = this.DropDownListDepartments.SelectedValue; DepartmentSelectedEventArgs eventArgs = new DepartmentSelectedEventArgs(department); if (null != DepartmentSelected) { DepartmentSelected(this, eventArgs); } }
protected void ButtonSearch_Click(object sender, EventArgs e) { string department = this.DropDownListDepartments.SelectedValue; DepartmentSelectedEventArgs eventArgs = new DepartmentSelectedEventArgs(department); if (null != DepartmentSelected) { DepartmentSelected(this, eventArgs); } }