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()); }
public void Update(ShowRssItem item) { dbContext.Entry(item).State = EntityState.Modified; dbContext.SaveChanges(); }