public void Notificate(IEnumerable <Item> items) { try { ConsoleNotify(items); foreach (var record in _records) { try { switch (record.Type) { case "Telegram": _telegramService.Notify(record, items); break; case "Email": _emailService.Notify(record, items); break; } } catch (Exception e) { Logger.Error(e, $"Notificate {record.Type} - {record.Value} FAILED"); } } } catch (Exception e) { Logger.Error(e, "Send notification FAILED"); } }