Exemplo n.º 1
0
 public List <string> GetSubscribedUsersEmail(ShowRssItem showRssItem)
 {
     return(dbContext.TvShowSubscriptions
            .Include(x => x.User)
            .Where(x => x.ShowRssId == showRssItem.ShowRssId && x.User.TvShowSubscriptionEmailNotificationEnabled)
            .Select(x => x.User.Email).ToList());
 }
Exemplo n.º 2
0
 public void Update(ShowRssItem item)
 {
     dbContext.Entry(item).State = EntityState.Modified;
     dbContext.SaveChanges();
 }