A Razor view has 3 buttons inside a form. All button\'s actions will need form values which are basically values coming input fields.
Every time I click any of butto
Didn't see an answer using tag helpers (Core MVC), so here it goes (for a delete action):
On HTML:
On Controller:
[HttpPost("[action]/{idForDeleteItem}"), ActionName("Delete")]
public async Task DeleteConfirmed(long idForDeleteItem)
{
///delete with param id goes here
}
Don't forget to use [Route("[controller]")] BEFORE the class declaration - on controller.