I write code in my application and it give me error 500 Internal Server Error.
$http.post(‘api/apiname’, mydata,
{headers: {‘Content-Type’: ‘application/json’,‘Accept’: ‘application/json’}}
).success(function (data)
{
console.log(data);
});
Please help me with this error.