Currently, I am working on a project that involves using AngularJS and MVC. I am transferring data from an AngularJS controller to my MVC controller using $http.post(). At the moment, I am using a single object or JSON array to retrieve data as follows: public bool UpdateIssueDetails(IssueBO issue). However, I am interested in being able to pass two JSON arrays from my AngularJS controller to the MVC controller method by modifying it like this: public bool UpdateIssueDetails(IssueBO issue, List lstMembersToNotify).
AngularJS Controller Code
Sample code provided here...
MVC Controller Code
Sample code provided here...
I attempted to pass two JSON arrays from my AngularJS controller using $http.post(url, [issueDetails, arrMembersToNotifyNew]), but encountered an error. Can anyone suggest how I can achieve this successfully? Thank you.