The project is open-source so can be improved by everyone. Source code is stored on https://github.com/oleggerus/SocialCareProject.git
- Clone repository from GitGub orother sources.
- Install .NEt Framework on your Windows machine.
- Configure MS SQL Server.
- Open .sln file
- Restore all nuget packages.
- Set SocialCareProject as startup project
- Run application.
- Clone project.
- Create branch for new functionality.
- Commit changes and prepare ypur code.
- Create pull request regrding your changes.
- Right click Controllers folder in the project > Add > Class
- Filename for a controller class must end in Controller so Visual Studio can distinguish controllers from regular classes.
- Our controller must inherit from the MVC controller base class and include using System.Web.Mvc. Also it should be inherited from BaseCustomerController or BaseAdministrationController depends on its area.
- Controller must be public so its accessible. See CustomerArea/Controllers/CustomerController.cs
Methods need to be public so its accessible. http://localhost:62466/Home/Index via CustomerController.cs
public class Customer : BaseCustomerController
{
public string Index()
{
return "Hello";
}
}