private void RemoveCompletedTorrentsCompleted(Response <IEnumerable <Torrent> > completedResult) { string message = string.Empty; if (completedResult.Success) { if (completedResult.Value != null) { var nonDuplicateTorrents = completedResult.Value.Where(torrent => !this.Torrents.Contains(torrent)).ToList(); this._repository.Add(nonDuplicateTorrents); } } else { message = "Error"; completedResult.DisplayMessages.Add(this.TimestampStatusMessage(message)); _eventLog.WriteToLog(completedResult); } this.RefreshTorrentsFromRepository(); this.UpdateStatusMessage(message); this.RaisePropertyChanged(() => this.SortedTorrents); this.RaisePropertyChanged(() => this.IsBusy); this.RemoveCompletedTorrentsCommand.RaiseCanExecuteChanged(); }