Now that the repository for covert type is in place, you might be craving to create a controller for
covert type and get started with all the views, but not yet.
I want to make one change with the architecture that we have.
What I want to do is I want to divide our controllers and fuse into section one will be the admin section
and one will be the customer section for that.
The darknet core has provided something called as areas in our project.
Inside that project, we can add areas and that will be like a sub folder, which has its own models,
controllers and views.
Once we do that, things might get a little tricky.
So let me show you what exactly we need to do.
Let me close all the tabs here inside the book web project.
Let's add.
And this time we do not want a new item.
I want to click new scaffolded item you can see right here it is displaying MVC area and MVC area,
has its own model views controller and wrote, Let's add this and we have to give our area some name.
We want to create two section one for all the admin related stuff and one for our customer.
So let's add admin first, and let's wait for that to be done.
It will create a new folder, as you can see inside the pocket book, where we have eight years.
And it also gave a scaffolding that we need to update our route because now we have something called
as areas along with controller and action.
So let me do that first insight program that see, yes, if you scroll down, you can see the default
route that we have only has controllers and actions.
So inside here we have got a controller that can application.
We are also using area and we can set a default route for area if that is not present, which we will
say customer now inside it has water here.
You notice we only have admin right now.
So that's right.
Click on Asia and add a new area, which will be customer.
That's at that.
And it opens up the scaffolding one more time.
We already added the area, so that's good with the program.
Yes.
No.
If you examine inside admin, it creates for folder and same contact the customer.
So now we have controllers, data models and reviews in each of the areas.
That way it will be isolated and it will be more organized.
But models and data we be have a separate class library for that, so we can't remove these two folders.
The only thing that we want to organize is the controllers and the fuse.
Let's see how we can do that in the next video and see areas in action.