With this exercise you will learn how to setup an ASP.NET MVC project on Visual Studio and build a fully-functional but simple web application.
To develop this web application on your PC, you will need the following to be installed and configured:
- Visual Studio 2019 with ASP.NET and web development workload
- .NET Core 3.0 SDK
Now, into the important stuff...
- Start with an Empty ASP.NET Core Web Application (C#)
- Organize your code with the proper folder structure
- Pick a theme that will include at least two Models, that will have a one-to-many relation. For example:
- Sportsbook Teams & Players
- Todo/Shopping List & Items
- Recipes & Ingredients
- Create at least the following Views their corresponding Actions:
- List with the
group
models (eg. Teams, Todo List, Recipes) - List with the
item
models (eg. Players, Todo List Items, Ingredients) - Add, Update & Delete
group
. - Add, Update & Delete
item
.
- List with the
- Implement the needed repository classes that will manage the data in-memory.
- Configure the Dependency Injection properly for all needed services.
- Optionally use a CSS framework such as Bootstrap.
- Hint: Make sure to always use ViewModels for your Controllers & Views.
- Another Hint: Utilize the
_ViewStart.cshtml
&_ViewImports.cshtml