Пример #1
0
        public EmployeeView()
        {
            _context = Application.Current.Properties["Workspace"] as IUnitOfWork;
            var employeeList = Task.Run(async() => await _context.EmployeeRepository.GetAll()).Result;

            Items = new ObservableCollection <EmployeeViewModel>(EmployeeMapper.DoListMap(employeeList));
            InitializeComponent();

            MyListView.ItemsSource = Items;
        }