When two actions match through routing, MVC must disambiguate to choose the 'best' candidate or else throw an exception. For example:
public class ProductsController : Controller{
public IActionResult Edit(int id) { ... }
[HttpPost]
public IActionResult Edit(int id, Product product) { ... }
}
This controller defines two actions that would match the URL path /Products/Edit/17 and...Read more