automapper, where do you put your code to map View Model to Entity

Viewed 1625

my mvc3 project has following layers.

controller -> service -> repository.

I need to map ViewModel to Entity, not sure which layer is the right one to put the code in.

I know its either controller or service, please let me know which one I should use, and if you could please let me know why.

thank you.

1 Answers
Related