inline.bundle.js:1 Uncaught ReferenceError: value is not defined Angular ASP.NET Core

//GET: api/Student/5
[HttpGet(“{id}”, Name = “Get”)]
public string Get(int id)
{
return “value”;

}

Solution:-

change to

[HttpGet]
[Route(“api/Student/{id}”)]
public string Get(int id)
{
return “value”;

}

Add Comment