Пример #1
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);
        }
        private void LoadDepartments()
        {
            var entities = _departmentsRepository.LoadDepartments();

            _departments.SetRange(entities.Select(c => new DepartmentModel(c)));

            DepartmentsLoaded?.Invoke(this, EventArgs.Empty);
        }