A .NET MVC app, based on ASP.NET MVC with Entity Framework and CSS by Lee Naylor.
- New ASP.NET Web Application.
- MVC, Individual User Accounts.
- Add the Product and Category classes.
-
Add the DAL folder and the StoreContext class.
-
Add a connectionString.
- Add the Categories MVC 5 Controller with views.
- Add the Products MVC 5 Controller with views.
- Make the Product and Category classes partial, create the ProductMetaData and CategoryMetaData classes and add annotations.
-
Update the Index method in the ProductsController so that it receives a parameter representing a chosen category and returns a list of products that belong to that category.
-
Transform the list shown in the Category Index Page to a list of hyperlinks that target the ProductsController Index method rather than a list of text items.
-
Modify the Index method of the Controllers\ProductsController.cs.
-
Add a Search Box to the Main Site Navigation Bar.
-
Update the ProductsController Index method to filter by Category.
-
Add the filter to the products Index page.
-
Add the ProductIndexViewModel and the CategoryWithCount class.
-
Update the ProductsController Index method to use the ViewModel.
- Update the HttpPost version of the Delete method in the file \Controllers\CategoriesController.cs.
-
Enable migrations for the StoreContext.
-
Seed the Database with Test Data.
- Add validation and constraints using annotations on the models.
- Add sorting by product price.
- Add pagination with the PagedList package.
- Generate routes for categories and paging.
- Add the ProductImage class and create the ProductImages table by adding a DbSet and running a migration.