Jim
Jim

Reputation: 3

ASP.NET MVC - Where to implement mappers?

Could you please advise me where to put:

  1. mappers for business objects and view model objects?
  2. mappers for shared user controls (business object <-> control's view model)?

Upvotes: 0

Views: 344

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038820

I implement mapping logic between models and view models in the ASP.NET MVC tier which is the frontend tier referencing both the business objects tier and the view models which are part of it. I use AutoMapper for this mapping logic.

Upvotes: 1

Related Questions