I have Web api controller:
[HttpPost]
public void SetAt(int id,TableModel idModel)
{
table[id] = idModel;
}
I try to access it with the aid of the method
$http.post("http://localhost:58652/api/Values/SetAt", data);
But I do not know how to pass data to the method $http.post works correctly.
Data:
- For
id =0; - For
idModel={ field: "Id", width: 200 };
How to do it?