Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1. query.QueryResult = Data.Query<Organization>().Select(o => new OrganizationsListItem()
  2.             {
  3.                 Id = o.Id,
  4.                 Name = o.Name,
  5.                 Description = o.Description,
  6.                 Tags = o.Tags.Select(t => t.Name),
  7.                 //todo take(3)
  8.                 UpcomingNews = o.NewsList.OrderByDescending(c=>c.PublicationDateTime).Select(x => new LiveTileItem()
  9.                 {
  10.                     Content = x.Content,
  11.                     Title = x.Title,
  12.                     Date = x.PublicationDateTime,
  13.                     Type = LiveTileType.News,
  14.                     Id = x.Id,
  15.                 })
  16.             }).ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement