摘要: ProductController.cs 可以根据用户类型分别显示商品价格,可以在类中修改 C \ region 商品价格 public virtual ActionResult GetDetailInfo(int id = 1, string viewName = "Detail") { YSWL 阅读全文
posted @ 2016-03-31 22:11 绥山潇洒哥 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 客户端在请求Web Api时可以有以下两种方式提供API key 基于Querystring提供Api key http://localhost:57967/Api/Values?key=12345 基于Request header体统API key 编写ApiKeyHandler 配置到特定的路由 阅读全文
posted @ 2016-03-31 16:50 绥山潇洒哥 阅读(3688) 评论(1) 推荐(1) 编辑