Experts,
I am building a Alchemy plugin with Version: 0.7.0.0, in which I need to submit a modal with a POST request using web api proxy in JS file. I am using JS code as below as explained here .
With this, the POST request end up to the correct method of the API Controller. But all the members of the Modal are received as null.
Can someone point out, if I am making any mistake here?
Modal:
public class MyExampleModel
{
public string[] Ids;
public string comments;
public string description;
}
JS code in plugin
var myCommentsModel = { Ids: ["id1", "id2", "id3"], comments: "my test comments", description: "my test description" };
Alchemy.Plugins["${PluginName}"].Api.SomeService.SomeFunction(myCommentsModel)
.success(function (data) {
// Some Code
})