Tagged Questions
4
votes
1answer
137 views
Use model for “everything” in MVC?
This question is a result out of the discussion HERE and was moved from HERE.
Is it really good practice to supply EVERY value you display in any view via a model?
Especially variables like the ...
2
votes
2answers
705 views
Domain Model vs View Model
I'm in the early stages of my programming career and I've been working with MVC for just about a year now. I've spent much time learning about the pattern and the concepts behind it, but as the ...
2
votes
2answers
642 views
MVC : Does Code to save data in cache or session belongs in controller?
I'm a bit confused if saving the information to session code below, belongs in the controller action as shown below or should it be part of my Model?
I would add that I have other controller methods ...
0
votes
1answer
431 views
Implementing a Service Layer with MVC4 while honoring Single Responsibility
I'm trying to learn some best practices while I ramp up on MVC4. I have a solution with three projects:
Web: MVC stuff
Core: Data Model
Tests: Testing classes
I'm now trying to add:
Services: ...