public override VirtualFile GetFile(string virtualPath)
        {
            if (ControllerActionHelper.IsControllerActionRoute(virtualPath))
            {
                return(new ControllerActionVirtualFile(virtualPath,
                                                       new MemoryStream(Encoding.Default.GetBytes(ControllerActionHelper.RenderControllerActionToString(virtualPath)))));
            }

            return(VirtualPathProvider.GetFile(virtualPath));
        }
Пример #2
0
 private string GetContentFromControllerAction()
 {
     return(ControllerActionHelper.RenderControllerActionToString(VirtualPath));
 }