public ActionResult Index(params string[] resource) 
		{
            var p = new OrchardServiceProvider<OrchardDataSource>(new OrchardDataSource(_contentManager));
            
		    var host = new OrchardDataServiceHost(Request);
		    p.AttachHost(host);
            p.ProcessRequest();
		    return new FileContentResult(host.Content, host.ResponseContentType);
		}
Exemple #2
0
        public ActionResult Index(params string[] resource)
        {
            var p = new OrchardServiceProvider <OrchardDataSource>(new OrchardDataSource(_contentManager));

            var host = new OrchardDataServiceHost(Request);

            p.AttachHost(host);
            p.ProcessRequest();
            return(new FileContentResult(host.Content, host.ResponseContentType));
        }