I have strong opinion that Controller MUST NOT acceess Request.Form anyway this is interface.
Are you saying that you think using Request.Form is always to be avoided?? I hope not. How would you handle form posts with several textareas and file uploads for example?
I think in Most of cases. Code that handle TextAreas must be extracted to transport level. If we do it in ControllerAction we add one
Extra responsibility to this method and increase his complexity.
mogadanez
Member
73 Points
49 Posts
Re: [BUG]Value from checkbox do not handle as parameter
Dec 24, 2007 08:31 PM|LINK
I think in Most of cases. Code that handle TextAreas must be extracted to transport level. If we do it in ControllerAction we add one Extra responsibility to this method and increase his complexity.
if we have many or complexity form fields we can use something like ( took from http://hammett.castleproject.org/?p=229 ):
[ControllerAction]
public void Create([FormBinder] Product product)
but anyway not inside ControllerAction.