Project setup:
MVC project, business layer that depends on repository pattern for working with data.
Question:
Sometimes you want the business layer to return data that is not a simple List<entitytype>
.
In that case, should your strongly typed view use the return value (some business model) of the business layer method or should you always use a viewmodel in the mvc model folder.
What is best practice?? If i use TDD for defining my business methods, my end point would be a model that implements the requirements that can be used by the view to display data, so the controller can simply pass that to the view. Is that bad and should i really use an model in the mvc project to be the interface between the controller and the view?
In any case, my MVC project depends on the business layer.. Is it bad to use return value models from the business layer to pass data from my controllers to my views?