Implementation of UpdateModel in MVC
In my last article I explained that how we can fetch data from view to controller using model and I fetched the data from view to controller using model and save this data into database. I am using the same example in this article.
We can also use UpdateModel method to fetch data from view to controller. UpdateModel is the method which is generics type and takes parameter of model type. This method fills the value to the property of the model class.
Note:- I am not showing the DAO Class code in this article. if you want to see the DAO class code then kindly click here.