摘要: public ActionResult Index(string id)//主页 //参数string searchString 访问方式为index?searchString=xxxx 。参数string id 访问方式为index/x { string searchString = id; //return View... 阅读全文
posted @ 2018-01-09 17:54 enych 阅读(428) 评论(0) 推荐(0) 编辑
摘要: return new HttpStatusCodeResult(HttpStatusCode.BadRequest); //HttpStatusCode statusCode 枚举 // HttpStatusCode.BadRequest = 400, public HttpStatusCodeResult(HttpStatusCode statusCode);//带参的构造函数 Htt... 阅读全文
posted @ 2018-01-09 17:17 enych 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-01-09 11:15 enych 阅读(259) 评论(0) 推荐(0) 编辑