public void DeleteEntry(CrmEntry entry) { try { _databaseClient.Delete(entry); CrmClient currentClient; if (!_clients.TryGetValue(GetContext(), out currentClient)) { return; } foreach (var crmClient in _clients.Values) { crmClient.CrmEntryDeleted(entry); } OnNotificationReceived(new NotificationEventArgs() { Notification = string.Format("CRM Entry deleted by Client {0}: {1} ({2}, {3})", currentClient.Credential.UserName, entry.ID, entry.LastName, entry.FirstName) }); } catch (Exception) { } }