Can I rebuild an existing MVC 5 project into Areas

I have a project that started out simply and is now growing. I started it ASP.NET MVC 5 and didn't see scopes as a way to organize at the time.

Now I need to implement a new feature in the same project.

Question: Given that my project is essentially organized as a single Controller / Model / View folder. Is it possible to restructure into Districts so that I put the existing function in one District and the new requirement function in a new separate area. I haven't used Area in the past, but from what I've read so far, it's easy to implement in a new project. My problem is breaking an existing application.

I would appreciate any advice, example, or link.



source to share

2 answers

Yes, you can use separate ares. But now that you are in the middle of a project, this will be difficult. However, if you need it, you can do it carefully, as you are breaking an existing project.

Your best bet is to link to the following link before doing so ...



In the middle of the project, I decided to split the project into 3 areas, 1 for the admin, 2 for two different types of users. I understand that this area is very similar to a brand new application with a different application. In the end, I left the areas with no real benefit. While scopes might be useful to someone, I ended up with my project without em and had no plans to use scopes again.



All Articles