code_junkie

Using a ModelBinder to get an object by an ID

Nov 13th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. public ActionResult Get(int? id) {
  2. ...
  3. }
  4.  
  5. public ActionResult Delete(int id) {
  6. ...
  7. }
  8.  
  9. public JsonResult GetJson(int? id) {
  10. ...
  11. }
Add Comment
Please, Sign In to add comment