public IEnumerable<Notification> List() { CloudTableQuery<Notification> partitionQuery = (from n in context.CreateQuery<Notification>(tableName) select n).AsTableServiceQuery<Notification>(); return partitionQuery.AsEnumerable(); }
public static void SendBillNotifications() { using (INotificationRepository rep = new NotificationRepository()) { var notifications = rep.List(); foreach (var n in notifications) { GetBillAndSendNotification(n); } } }