ASP.NET MVC 2.0 Copy ViewModel to Business Objects

I am using ASP.NET MVC 2.0 and I want to wrap the ViewModel properties into a business object. I can do it manually or use AutoMapper or use the new method available in ASP.NET MVC 2.0. My question is, does anyone know the name of a new method that allows properties to be copied from one object to another?

+2


a source to share


1 answer


Received! But this is part of the ASP.NET MVC Futures library! Sorry for the confusion.

ModelCopier.CopyModel(employeeViewModel, employee);

      



And here is the link:

http://weblogs.asp.net/rajbk/archive/2010/03/31/easy-way-to-update-models-in-your-asp-net-mvc-business-layer.aspx

+1


a source







All Articles