private async void RemoveItemFromEntityCollection(RemoveEntityCollectionItem action, int CollectionKey) { var saveRet = action(ArchiveEntity.ArchiveEntityKey, CollectionKey); if (!saveRet.Success) { var msg = string.Format("Во время сохранения записи {0}{2} возникла исключительная ситуация{2} {1}" , ArchiveEntity.Title, saveRet.Messages.FirstOrDefault(), Environment.NewLine); AppLogger.SetLog(msg, System.Diagnostics.EventLogEntryType.Error); await _messageDialogService.ShowInfoDialogAsync(msg); } _eventAggregator.GetEvent <FileOnDriveSavedEvent>().Publish(ArchiveEntity.Model); InvalidateCommands(); }