Sunday, 15 May 2011

javascript - How to pass multiple JSON data objects from CSHTML to WEB.API? -


Based on the following question:

My situation is the same, though it is different, and I am thinking That if the solution applies:

My WEB.API code section is as follows:

  [root ("API / Admin / Site Settings / UpdateCommand Notification") [HTPP] [ResponseTip (Siteofettings.CompanyContactInformation) Fix back (_oSiteSettings.CompanyContactInformation_Update (_oCompanyContactInformation, _oSiteDetails)); }  

So I can object to a multi-level JSON data back to my main question:

  _data = {_ oCompanyContactInformation: {... }, _oSiteDetails: {...}}  

??


No comments:

Post a Comment