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)); }
public async Task <ActionResult> Content(int productId, int itemId) { var model = await SectionExtensions.GetContentAsync(productId, itemId); return(View("Content", model)); }