Skip to content

Instantly share code, notes, and snippets.

@between40and2
Last active December 28, 2015 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save between40and2/7555267 to your computer and use it in GitHub Desktop.
Save between40and2/7555267 to your computer and use it in GitHub Desktop.
Controller 和 Filter 互联方案
以ControllerContext为中介,合理利用ViewData。
http://msdn.microsoft.com/en-us/library/system.web.mvc.controllercontext(v=vs.108).aspx
自定义Model类:
UserIntention
- account
- acceptEncoding
- acceptStandardizedType - enum HTML, JSON
- resource
- operationType
ActionOperation
- operationType
- uri
- newResourceID
- newResourceUri
- parameters
- results
ActionOperationType
- CRUDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment