I was wondering if there is a tool / framework or something similar that would allow me to populate a class’ properties with the items from the FORM posted values?
Rather than doing
class.ID = Response.Form["ID"];
etc
I currently use automapper for tranforming from some objects to another..
Maybe its possible to do this?
Any ideas?
EDIT
To confirm the technology is winform (ASP.NET) not MVC.
In MVC this is built in. Put in a class in your Controllers Action parameters and it will be implicit.
Guess you might be using .NET forms though?