-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Please can you help:
I have implemented my controller action as
[HttpPatch]
[Authorize]
[Route("Projects/{projectID}/Insights/{id}")]
public ActionResult InsightPatch (Guid projectID, Guid id, JsonPatchDocument patchData)
{
... some stuff...
}
I then call into this using JQuery, like so:
var patch = [{ "op": "replace", "path": "/title", "value": "some string value" }];
$.ajax({
url: "/Projects/" +
data: JSON.stringify( patch ),
type: 'PATCH',
contentType: 'application/json',
success: () => { console.log("PATCH Submitted"); }
});
However, Operations.Count() is always 0 in the controller action. I am targetting .Net Framework 4.6.1
Can anyone please help?