I have a requirement to create register-login application with mvc and this application needs to be multilayered.
I don't know so much about the multi layer architecture, i have just read about it few times. So i believe in a standart mvc application:
Presentation layer - my views Bussiness layer - Controls
and where should i put my data access layer? In my application when user clicks register, model comes into action. I check if the model is valid, put it into the database using entity framework and redirect user to welcome page but data access layer is missing in this architecture.
Where should i put my data access and what responsibilities i should give to it?
For example, should i move all entity framework code into some other class or just move the code that is putting user into database to model itself?