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
Can you modify your defining route just like
[Route("game")]
[HttpPut]
public IActionResult updateGame([FromBody]Game update)
{
//your code
}
And call from angular like
putGame(game:Game){
return this._http.put(this.url + "game", game);
}
you can receive gameid from game object so don't need from url