Exemplo n.º 1
0
 public ActionResult ViewProductDetail(string watchCode)
 {
     if (watchService.IsAvailableWatch(watchCode))
     {
         //valid link. Deny any invalid manual input link.
         var viewModel = watchService.GetWatchFullDetail(watchCode);
         viewModel.ReviewList = reviewService.LoadWatchAllReview(watchCode);
         return(View("~/Views/Watch/watch_detail.cshtml", viewModel));
     }
     return(RedirectToAction("NotFound", "Home"));
 }