由于您不能有两个具有相同名称和签名的方法,因此您必须使用 ActionName 属性: [HttpGet] public ActionResult Index() { // your code return View(); } [HttpPost] ...
確定! 回上一頁