protected override async Task MapEditedItemToEditor(EmployeeJob item) { await base.MapEditedItemToEditor(item); SelectedEmployee = EmployeeList.First(e => e.Id == item.EmployeeId); SelectedJob = JobList.First(e => e.Id == item.JobId); SelectedDepartment = DepartmentList.First(e => e.Id == item.DepartmentId); SelectedCompany = CompanyList.First(e => e.Id == item.CompanyId); BranchList = (await _branchRepository.GetItemsWithDetailsByCompany(item.CompanyId)).ToAsyncObservableCollection(); SelectedBranch = BranchList.First(e => e.Id == item.BranchId); }