public static void SendBillNotifications() { using (INotificationRepository rep = new NotificationRepository()) { var notifications = rep.List(); foreach (var n in notifications) { GetBillAndSendNotification(n); } } }