摘要: 蛋疼的路由规则约定在上一篇文章中我们成功通过AJAX获取到了服务器的数据,而且服务器根据请求的类型,格式化数据之后再传给客户端。然而在上一篇的实例中,我们为controller程序增加一个GetProducts方法让这个方法与GetAllProducts方法逻辑一致 public IEnumerable<Product> GetAllProducts() { return products; } public IEnumerable<Product> GetProducts() { ... 阅读全文
posted @ 2012-06-16 14:57 liulun 阅读(19655) 评论(9) 推荐(3) 编辑