hi,
I am trying to follow this tutorial :https://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api , just renamed products to planes
This part work ok :
var uri = 'api/planes';
var id = $('#planeId').val();
$.getJSON(uri + '/' + id)
But I see a error with the 'Get'
status of 500 (Internal Server Error) is seen when the page loads . Any tips how to debug this ?
http://localhost:1926/index.html , calls the C# Get method
public class PlanesController : ApiController
{
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
}
Plane[] planes = new Plane[]
{etc
Thanks,Peter