private void LoadEmployess() { _employess.Clear(); var entities = _employessRepository.LoadEmployees(); _employess.SetRange(entities.Select(c => new EmployeeModel(c))); EmployeesLoaded?.Invoke(this, EventArgs.Empty); }
public void LoadEmployees(int departmentId) { _employess.Clear(); var entities = _employessRepository.LoadEmployees(departmentId); _employess.SetRange(entities.Select(c => new EmployeeModel(c))); EmployeesLoaded?.Invoke(this, EventArgs.Empty); }