ServiceRoute for OData

Topics: Customizing Orchard, Writing modules
Mar 22, 2011 at 12:02 AM

I have an OData service I'd like to expose from a module.  In a normal ASP.Net route, I'd just use a ServiceRoute to point it, but I'm not sure how to do that in a module's Routes.cs.  What's the best practice for this?

Mar 31, 2011 at 3:41 PM

Any info on this?

Mar 31, 2011 at 3:56 PM

Presumably you'd use an Action on your Controller, it's very easy to read and expose JSON. Just return Json(object) from your action for whatever you need to output.