Ejemplo n.º 1
0
        private UserWithStatistics ProjectToUserStatistics(User model)
        {
            var projection = new UserWithStatistics
            {
                Name  = model.DisplayName,
                Id    = model.Id,
                Count = model.RssSubscriptionList
                        .SelectMany(c => c.RssEntriesToRead)
                        .Count(r => r.IsRead)
            };

            return(projection);
        }
 private UserWithStatistics ProjectToUserStatistics(User model)
 {
     var projection = new UserWithStatistics
     {
         Name = model.DisplayName,
         Id = model.Id,
         Count = model.RssSubscriptionList
             .SelectMany(c => c.RssEntriesToRead)
             .Count(r => r.IsRead)
     };
     return projection;
 }