IEnumerable <string> GetUsersToNotify(SiteNotification notif) { foreach (var user in db.SelectObjectsWhere <User> ("SiteNotifications & {0} = {1}", (int)notif, (int)notif)) { yield return(user.Email); } }
public IEnumerable <Project> GetProjects() { return(db.SelectObjectsWhere <Project> ("ApplicationId={0}", application.Id)); }