I have a Web API controller that looks like this:
public IHttpActionResult Test()
I guess that when you receive an empty response (without payload) you don't need to call the
json method. Under the hood, the XHR response is undefined,
JSON.parse(undefined) is called and an error is thrown.
You could skip the call of the
return this.http.post(API/Controller/Test)/*.map(res => res.json())*/;