Ok, I'm stumped...
I'm trying to use the Services Framework to retrieve/update some data. I'm using the Kendo UI grid to pass data back to my service after updating. I can see in Chrome that the data is being passed from the browser:
Request Payload
{"SportSeasonId":1,"SportId":1,"SportSeasonDescription":"NFL 2012-2013 Season","SeasonStartDate":"2012-09-05T04:00:00.000Z","SeasonEndDate":"2013-02-04T05:00:00.000Z","SeasonStatus":"B","PortalId":0,"KeyID":1}
The signature on my controller method is as follows:
[DnnAuthorize(AllowAnonymous = true)]
[HttpPost]
public ActionResult WsUpdateSportSeason(TwlSportSeason sportSeason)
The class TwlSportSeason has the exact same members as indicated in the JSON string above and all are set as public properties in the class. The TwlSportSeason class itself is decorated with a [Serializable] attribute (although that doesn't appear to actually do anything) but none of the class members have any decorations.
My call does get routed properly (using the DNN IServiceRouteMapper implementation) to the controller but when I debug the controller method, I see that the sportSeason object is initialized but populated with null values. It appears that the JSON is just not getting deserialized into my object. This has been driving me crazy for the best part of a day now and nothing I try seems to work.
Anyone got any ideas?