Esempio n. 1
0
        public IActionResult AddBookReview(int bookId)
        {
            Request.ThrowErrorIfNotLocal();

            var service     = new AddReviewService(dataContext);
            var blankReview = service.GetBlankReview(bookId);

            ViewData["BookTitle"] = service.BookTitle;

            return(View(blankReview));
        }
Esempio n. 2
0
        public IActionResult AddBookReview(int id)
        {
            Request.ThrowErrorIfNotLocal();

            var service = new AddReviewService(_context);
            var review  = service.GetBlankReview(id);

            ViewData["BookTitle"] = service.BookTitle;
            SetupTraceInfo();
            return(View(review));
        }