private void RaiseCreateMappingInteractionRequest()
        {
            var newMapping = new ColumnMapping();

            newMapping.EntityImporter = InnerItem.EntityImporter;
            _mappingEditVM.InnerItem  = newMapping;

            CommonConfirmRequest.Raise(
                new ConditionalConfirmation()
            {
                Content = _mappingEditVM, Title = "Create mapping"
            },
                (x) =>
            {
                if (x.Confirmed)
                {
                    //newMapping.SystemPropertiesMap = new ObservableCollection<MappingItem>();
                    //newMapping.CustomPropertiesMap = new ObservableCollection<MappingItem>();
                    //newMapping.PropertySetId =
                    if (AllAvailableColumnMappings != null)
                    {
                        AllAvailableColumnMappings.Add(newMapping);
                    }
                    else
                    {
                        AllAvailableColumnMappings = new ObservableCollection <ColumnMapping>()
                        {
                            newMapping
                        };
                    }
                    OnPropertyChanged("AllAvailableColumnMappings");

                    InnerItem.ColumnMapping   = newMapping;
                    InnerItem.ColumnMappingId = newMapping.ColumnMappingId;
                    OnPropertyChanged("InnerItem");
                }
            });
        }
        private void RaiseCreateMappingInteractionRequest()
        {
            var newMapping = new ColumnMapping();

            newMapping.EntityImporter = InnerItem.EntityImporter;

            var itemVM = Container.Resolve <IColumnMappingEditViewModel>(
                new ParameterOverride("item", newMapping)
                );

            CommonConfirmRequest.Raise(
                new ConditionalConfirmation(itemVM.Validate)
            {
                Content = itemVM, Title = "Create mapping"
            },
                (x) =>
            {
                if (x.Confirmed)
                {
                    if (AllAvailableColumnMappings != null)
                    {
                        AllAvailableColumnMappings.Add(newMapping);
                    }
                    else
                    {
                        AllAvailableColumnMappings = new ObservableCollection <ColumnMapping>()
                        {
                            newMapping
                        };
                    }
                    OnPropertyChanged("AllAvailableColumnMappings");

                    InnerItem.ColumnMapping   = newMapping;
                    InnerItem.ColumnMappingId = newMapping.ColumnMappingId;
                    OnPropertyChanged("InnerItem");
                }
            });
        }