private void FillComboBoxForDepartments() { var departmentList = _departmentServices.FilterEntityByName(q => q.name); foreach (var item in departmentList) { cmbDepartment.Items.Add(new ComboBoxWithProps(item.id, item.name)); } }