public void SelectAllItems(ICollectionView availableItemsCollectionView)
        {
            var itemVM = _returnItemVmFactory.GetViewModelInstance();

            itemVM.IsBulkReturn = true;

            var confirmation = new ConditionalConfirmation {
                Title = "Specify return reason".Localize(), Content = itemVM
            };

            ReturnItemConfirmRequest.Raise(confirmation, (x) =>
            {
                if (x.Confirmed)
                {
                    var itemsList = new List <ReturnBuilder.ReturnLineItem>(availableItemsCollectionView.Cast <ReturnBuilder.ReturnLineItem>());

                    foreach (var obj in itemsList)
                    {
                        ReturnBuilder.AddReturnItem(obj, obj.LineItem.Quantity, itemVM.SelectedReason);
                    }
                    OnPropertyChanged("ReturnTotal");
                    OnIsValidChanged();
                }
            });
        }
        public void SelectItem(object selectedObj)
        {
            var itemVM = _returnItemVmFactory.GetViewModelInstance();

            itemVM.ReturnLineItem = selectedObj as ReturnBuilder.ReturnLineItem;

            var confirmation = new ConditionalConfirmation {
                Title = "Specify return data".Localize(), Content = itemVM
            };

            ReturnItemConfirmRequest.Raise(confirmation, (x) =>
            {
                if (x.Confirmed)
                {
                    ReturnBuilder.AddReturnItem(itemVM.ReturnLineItem, itemVM.QuantityToMove, itemVM.SelectedReason);
                    // recalculate

                    // OnPropertyChanged("ReturnTotal");
                    OnIsValidChanged();
                }
            });
        }