Bookstore.DataAccessLayer.ReviewsDAO.DeserializeFoundReviews C# (CSharp) Method

DeserializeFoundReviews() private method

private DeserializeFoundReviews ( IOrderedQueryable reviewsInPeriod, IList reviewsFound ) : void
reviewsInPeriod IOrderedQueryable
reviewsFound IList
return void
        private void DeserializeFoundReviews(IOrderedQueryable<Review> reviewsInPeriod, IList<FoundReviewTransferObject> reviewsFound)
        {
            foreach (Review review in reviewsInPeriod)
            {
                FoundReviewTransferObject foundReview = new FoundReviewTransferObject();
                foundReview.Date = review.DateOfCreation;
                foundReview.Content = review.Content;
                foundReview.BookTitle = review.Book.Title;
                foundReview.BookIsbn = review.Book.ISBN;
                foundReview.BookUrl = review.Book.WebSite;
                if (review.Book.Authors.Count != 0)
                {
                    var authorNames = review.Book.Authors
                        .OrderBy(a => a.Name).Select(a => a.Name);

                    foundReview.BookAuthors = string.Join(", ", authorNames);
                }

                reviewsFound.Add(foundReview);
            }
        }
    }