Posted by Joe | Posted in MVC | Posted on 17-02-2010
When updating a model in MVC it is common to use the Controller.UpdateModel method. I recently ran into an issue where I was using a custom ViewModel which meant that UpdateModel could not map the updated data back to my model object. The solution to this was a simple one, but not as obvious as it should be due to intellisense not picking up the method’s overloads when the generic type is inferred.


