コード例 #1
0
        /// <summary>
        /// 显示指定影片详细信息
        /// </summary>
        /// <param name="productId"></param>
        /// <returns></returns>
        public ActionResult Detail(string productId)
        {
            Product product = this.ProductService.GetMovie(productId);

            if (null == product)
            {
                return(new HttpNotFoundResult(String.Format("指定的产品“{0}”不存在", productId)));
            }
            return(View(MovieInfo.FromProduct(product)));
        }