public async Task <ActionResult> Content(int?productId, int?itemId)
        {
            if (productId == null || itemId == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var model = await SectionExtensions.GetContentAsync(productId.Value, itemId.Value);

            return(View(model));
        }
示例#2
0
        public async Task <ActionResult> Content(int productId, int itemId)
        {
            var model = await SectionExtensions.GetContentAsync(productId, itemId);

            return(View("Content", model));
        }