[Vuejs]-I am sending ID to Controller with Vue js in NET 5, but result is null

0👍

Quick fix will be:

axios.post("/Tedarikci/Remove/" + ID)

Since your are doing Post, it would be good to make your controller accept an object:

public IActionResult Remove([FromBody] RemoveInput input)

and your script:

axios.post("/Tedarikci/Remove", { id: ID })

Leave a comment