Beispiel #1
0
 //Returns a list of all threads in the album
 private IEnumerable <ThreadModel> BuildThreadList(Album album)
 {
     return(_threadService.AlbumThreads(album).Select(threads => new ThreadModel
     {
         Title = threads.Title,
         Description = threads.Description,
         Created = threads.CreateDate,
         Picture = threads.Image,
         AuthorUserName = threads.UserName,
         Rating = threads.Votes,
         Id = threads.ID,
         Flagged = threads.Flagged
     }));
 }