Exemplo n.º 1
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);
		}
Exemplo n.º 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));
        }