Here is code where for API controller:
[HttpGet("{id}", Name = "GoalsById")] public IActionResult GetGoalsById(int id) { t