I'm new to the ASP.NET MVC 5 and WebAPI 2 technology. I am currently developing a project for my school. This project will be used on computers or mobile.
I have a Visual Studio solution like this:
- A project "Web.Front" - ASP.NET MVC 5 - A front website used to describe the project
- A project "Web.Management" - ASP.NET MVC 5 - The core web application
- A project "WebApi" - WebAPI 2 project with authentication with individual accounts
- A project "Models" - Class library - containing my POCO classes for Code First
- A project "Database" - Class library - containing my DbContext and migrations classes
I am having difficulty understanding how to manage users in this project.
I can create my database of my users, and through Fiddler authenticate and create / manage users in my database.
Now I want to access to my users within my controllers on my project "Web.Management".
When creating it , I chose "Individual accounts" for authentication , so visual studio automatically generated AccountController controller.
I would like to change these methods to query my WebAPI directly .
1) Do you think that the architecture of my solution is correct ? 2) Can you tell me how to change my controller " AccountController " to manage users through the WebAPI ?
Regards !