Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- query.QueryResult = Data.Query<Organization>().Select(o => new OrganizationsListItem()
- {
- Id = o.Id,
- Name = o.Name,
- Description = o.Description,
- Tags = o.Tags.Select(t => t.Name),
- //todo take(3)
- UpcomingNews = o.NewsList.OrderByDescending(c=>c.PublicationDateTime).Select(x => new LiveTileItem()
- {
- Content = x.Content,
- Title = x.Title,
- Date = x.PublicationDateTime,
- Type = LiveTileType.News,
- Id = x.Id,
- })
- }).ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement