예제 #1
0
        // Helping method to build reviews from ReviewDB
        private List <Review> BuildReviews(int id)
        {
            List <Review> reviews = new List <Review>();

            reviews = reviewDB.GetAll(id);

            // Builds an user to show user attributes on review in the webshop
            foreach (Review r in reviews)
            {
                r.User = userDB.GetUser("userID", r.User.ID.ToString());
            }
            return(reviews);
        }
 public List <Review> GetAllReviews() => _reviewdb.GetAll();