Jan 15, 2017 04:31 PM|PatriceSc|LINK
What if you try with :
public HttpResponseMessage UpdateFile(string orgName, string repoName, string fileName,GitModels.UpdateFile file)
ASP.NET handles the deserialization for you and you can work directly with the file object. Else as pointed already tell which error or behavior you see (you have an ajax error function ?) so that we can deal with the EXACT error you have rather than trying
to guess (this is also likely why you tried for hours).
Finally, an http request shouldn't be triggered magically multiple times and I would still try to fix the source issue. As told in an earlier thread check the current http query or call stack to, understand from where it comes from. At best you'll "hide"