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)); }
private string GetContentFromControllerAction() { return(ControllerActionHelper.RenderControllerActionToString(VirtualPath)); }