Task INotificationHandler <OnCloselDialogCommand <AddProductComponentViewModel> > .Handle(OnCloselDialogCommand <AddProductComponentViewModel> notification, CancellationToken cancellationToken)
        {
            //notification.OnBaseInvoke.Invoke(() =>
            //{
            //    notification.ViewModel.IsDisplay = false;
            //    notification.ViewModel.Product = null;
            //    notification?.OnStateHasChanged?.Invoke();
            //    notification.ViewModel.RefreshEvent.InvokeAsync("Refresh Event");
            //});

            notification.OnInvokeAction.Invoke((addProductViewModel, OnStateHasChanged) =>
            {
                addProductViewModel.IsDisplay = false;
                addProductViewModel.Product   = null;
                OnStateHasChanged.Invoke();
                addProductViewModel.RefreshEvent.InvokeAsync("Refresh Event");
            });

            return(Task.CompletedTask);
        }
        Task INotificationHandler <OnCloselDialogCommand <DeleteProductComponentViewModel> > .Handle(OnCloselDialogCommand <DeleteProductComponentViewModel> notification, CancellationToken cancellationToken)
        {
            notification.OnInvokeAction.Invoke((deleteProductComponentViewModel, OnStateHasChanged) =>
            {
                deleteProductComponentViewModel.IsDisplay = false;
                OnStateHasChanged.Invoke();
                deleteProductComponentViewModel.RefreshEvent.InvokeAsync("Refresh");
            });

            return(Task.CompletedTask);
        }