ServiceRoute for OData

Topics: Customizing Orchard, Writing modules
Mar 21, 2011 at 11:02 PM

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 2:41 PM

Any info on this?

Mar 31, 2011 at 2: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.