public IEnumerable <Micropost> Feed() { var following = Following.Select(u => u.Id).ToList(); var query = HttpContext.Current.GetOwinContext().Get <ApplicationDbContext>().Microposts.Where(mp => mp.User.Id == this.Id || following.Contains(mp.User.Id)) .OrderByDescending(mp => mp.CreatedAt); return(query); }