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
This is what worked for me.
formaction="@Url.Action("Edit")"
Snippet :
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Edit( Quote quote)
{
//code
}
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult PartialEdit(Quote quote)
{
//code
}
Might help some one who wants to have 2 different action methods instead of one method using selectors or using client scripts .