Timeline for .NET MVC project architecture / layering
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 18, 2018 at 14:51 | comment | added | AminM | @EricKing do you have Github example?? | |
| Oct 15, 2018 at 17:55 | comment | added | Eric King | @HunterNelson If you're mapping into a viewmodel, then the mapping should occur where the view is, in the presentation layer. It wouldn't make sense anywhere else. | |
| Oct 15, 2018 at 17:12 | comment | added | Hunter Nelson | What layer should the mapping from data model in a code first scenario to a view model occur? | |
| May 23, 2017 at 12:40 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
| Nov 13, 2014 at 15:09 | comment | added | Eric King | @tom Yes, you have a good point. I was thinking simple authorization as in does user have access to this route, but there can be a lot more to it than that. The "a lot more to it" part belongs in the business layer. | |
| Nov 13, 2014 at 9:22 | comment | added | tom | While authentication is a controller concern (different UIs authenticate differently) I'd say authorisation is business logic and belongs in the business layer. Do you agree? | |
| Oct 6, 2013 at 9:10 | vote | accept | Michael Harper | ||
| Oct 5, 2013 at 22:42 | comment | added | Eric King | @MichaelHarper Yes, that sounds like a perfectly good way of going about it. | |
| Oct 5, 2013 at 22:27 | comment | added | Michael Harper | Hi Eric, excellent reply - regarding the repositories, I assume the concrete classes would live in the data access layer and the 'ICarRepository' etc in the business/service layer? Then I could inject services in to my controller which may contain 1 or more repositories depending on the requirements? | |
| Oct 4, 2013 at 23:47 | history | answered | Eric King | CC BY-SA 3.0 |