I\'m trying to update an entry in the game
table. However, my PUT request in ASP.NET never seems to trigger, and I can\'t figure out why.
This is controller
The route template parameter {update.GameID}
is not standard to what is suggested by documentation
Assuming the game id is an integer review the following
//PUT .../game/5
[Route("game/{id:int}")]
[HttpPut]
public IActionResult updateGame(int id, [FromBody]Game update) {
//...
}
Reference Routing to controller actions in ASP.NET Core
I would also suggest you review the logic of the action as I do not believe it is doing what you think it does with updating the entity returned from the context.