Until now I have had a Model and ViewModel, neither with constructors and a Helper Class that has methods for mapping to and from the Model/ViewModel.
This is because that is the way that I have seen it in every tutorial.
What I was wondering is why not add a constructor to the ViewModel that has the Model as a Parameter and put the mapping code in there?
You would need a blank constructor for when you wanted a ViewModel without a model, that's no hardship.
The logical progression of this is to do the same with the Model for going the other way.
Is this breaking some golden rule? Is there some reason I've not seen it done?
Tom