REST
moonavw
这个作者很懒,什么都没留下…
展开
-
使用RESTful Routing
1,原REST, 8 Actions, 但是很多不支持HttpMethod:PUT,DELETEThe Eight Actions Action HTTP Method Default Url Description Index GET [controller] Gets a collection of resources Show GET [contr转载 2008-08-22 10:01:00 · 251 阅读 · 0 评论 -
我的容器IRepository
配合RESTful,设计Model的容器Repository, 在RESTful MVC中的对Model操作很有作用我对Model的容器设计如下 public interface IRepository { Type EntityType { get; } string EntityName { get; } string EntitiesName原创 2008-08-24 10:15:00 · 614 阅读 · 0 评论 -
我的RESTful Controller
在RESTful MVC中当然就要用RESTful Controller来体现REST魅力了, 统一的约束使得所有的Controller就清晰易读我的IRestfulController设计如下 public interface IRestfulController { ActionResult Index(int? page); ActionResult Sh原创 2008-08-24 10:52:00 · 322 阅读 · 0 评论