Esempio n. 1
0
        public ActionResult Textbook(string id)
        {
            grabFromDB grab = new grabFromDB();
            Post       post = grab.getPost(id);

            ViewBag.Post = post;

            Globals.setCurrentPostEmail(post.email);
            Globals.setCurrentPostId(post.ID);
            List <ReviewResults> results = grab.getReviewByEmail(post.email);

            ViewBag.ReviewList = results;

            return(View("Textbook"));
        }