private async Task DeleteCoreAsync(TEntity entity)
        {
            ApiReply reply = await ApiConnector.DeleteAsync(entity);

            if (reply.WasSuccessful)
            {
                NotificationMessageProvider.ShowSuccessMessage(Messages.EntityDeleted.FormatWith(entity.GetDisplayName()));
                OnDeletedAction?.Invoke(entity);
            }
            else
            {
                NotificationMessageProvider.ShowErrorMessage(reply.ResultMessage);
            }
            IsEnabled = true;
        }
        ///<inheritdoc/>
        public override async void ExecuteCommand(object param = null)
        {
            ApiReply <TEntity> reply;

            if (IsNewEntity)
            {
                reply = await ApiConnector.PostAsync(Entity);
            }
            else
            {
                reply = await ApiConnector.PutAsync(Entity);
            }

            if (reply.WasSuccessful)
            {
                NotificationMessageProvider.ShowSuccessMessage(Messages.EntitySaved.FormatWith(Entity.GetDisplayName()));
                OnSavedAction.Invoke(reply.Result);
            }
            else
            {
                NotificationMessageProvider.ShowErrorMessage(reply.ResultMessage);
            }
        }
 public async Task ShowSuccessMessageTest()
 {
     NotificationMessageProvider.ShowSuccessMessage("test1");
     await TestCore(NotificationKind.SuccessNotification, "test1");
 }