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); }
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)); }