私のコントローラーには、次の2つのメソッドがあります。
[ActionName("index")]
public ActionResult Index()
{
return View();
}
and
public ActionResult Index()
{
var m =MyMod();
return View(m);
}
私が使用したにもかかわらず、私は[ActionName("index")]
それを言ってエラーが発生しますError 1 Type 'MyProject.Controllers.MyController' already defines a member called 'Index' with the same parameter types
どうすればこれを防ぐことができますか?