public IActionResult AddBookReview(int bookId) { Request.ThrowErrorIfNotLocal(); var service = new AddReviewService(dataContext); var blankReview = service.GetBlankReview(bookId); ViewData["BookTitle"] = service.BookTitle; return(View(blankReview)); }
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)); }