你的位置:首页 > ASP.net教程

[ASP.net教程]MVC Action,Service中筛选int 和listint

action:

     public ActionResult DeleteByID(int id)    {      this.MessageService.DeleteMailTemplate(id);      var from = Request["from"];      return RedirectToAction("TemplateIndex", new { from = from });    }    public ActionResult DeleteByID(List<int> ids)    {      return this.Stop("判断情况是否一致", Request.UrlReferrer.AbsolutePath, true);    }

 这两个响应会产生报错,