Esempio n. 1
0
        private void LoadEmployess()
        {
            _employess.Clear();

            var entities = _employessRepository.LoadEmployees();

            _employess.SetRange(entities.Select(c => new EmployeeModel(c)));

            EmployeesLoaded?.Invoke(this, EventArgs.Empty);
        }
Esempio n. 2
0
        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);
        }