Inheritance: System.Web.Mvc.ViewResult
コード例 #1
0
        protected override ActionResult CreateActionResult(ControllerContext controllerContext, ActionDescriptor actionDescriptor, object actionReturnValue)
        {
            var result = base.CreateActionResult(controllerContext, actionDescriptor, actionReturnValue);

            if (result is ViewResult && !controllerContext.IsChildAction)
            {
                result = new RazorBridgeViewResult((ViewResult)result);
            }

            return(result);
        }
コード例 #2
0
        protected override ActionResult CreateActionResult(ControllerContext controllerContext, ActionDescriptor actionDescriptor, object actionReturnValue)
        {
            var result = base.CreateActionResult(controllerContext, actionDescriptor, actionReturnValue);

            if (result is ViewResult && !controllerContext.IsChildAction)
            {
                result = new RazorBridgeViewResult((ViewResult) result);
            }

            return result;
        }