Wednesday, August 10, 2011

passing GET variables to controllers

public ActionResult Create(String category)

...and...

public ActionResult Details(Guid id)

 
...are examples of passing url line variables to controller actions. The string is going to be a lot more forgiving that the guid. Perhaps the guid needs to be nullable to be flexible.

No comments:

Post a Comment