protected override async void ActivateSelected()
        {
            using (var c = NestedContainer)
            {
                if (SelectedContainer.Container._Status == EntityStatus.Active)
                {

                    if (Using<IMasterDataUsage>(c).CheckSourcingContainerIsUsed(SelectedContainer.Container))
                    {
                        MessageBox.Show(
                            "Container " + SelectedContainer.Container.Name +
                            " has dependencies. Deactivate or delete dependencies to continue.",
                            "Agrimanagr: Deactivate Container", MessageBoxButton.OK, MessageBoxImage.Exclamation);
                        return;
                    }
                }

                string action = SelectedContainer.Container._Status == EntityStatus.Active
                             ? "deactivate"
                             : "activate";
                if (
                        MessageBox.Show("Are you sure you want to " + action + " this container?",
                                        "Agrimanagr: Activate Container", MessageBoxButton.OKCancel) ==
                        MessageBoxResult.Cancel) return;

                ResponseBool response = new ResponseBool() {Success = false};
                if (SelectedContainer == null) return;
                _proxy = Using<IDistributorServiceProxy>(c);
                response = await _proxy.ContainerActivateOrDeactivateAsync(SelectedContainer.Container.Id);

                MessageBox.Show(response.ErrorInfo, "Agrimangr: Manage Containers", MessageBoxButton.OK,
                                MessageBoxImage.Information);
            }
        }