
Learn to centralize using statements and tag helpers in the _ViewImports file, avoiding repeated imports across views and speeding up compile-time setup in asp.net mvc.
Explore model binding, receiving data from route or query via the HttpGet action method, and binding simple and complex types to load categories from an in-memory data store.
Learn to handle http post submissions by decorating an action with http post, binding form fields to a category object, updating via the repository, and redirecting to index.
Implement the add category flow with http get and post actions, create the add view, validate the model state, persist via the repository, and redirect to the index on success.
Learn to render JavaScript in an ASP.NET Core MVC app to confirm category deletions with a delete action and a script section for confirmation.
Learn to deduplicate category forms by using a partial view in ASP.NET Core MVC, pass action context with the view bag, and render it in add and edit views.
Use partial views in .NET 8 MVC to modularize the cashier's console, separating concerns into product lists, details, category selection, and the selling form.
Populate the categories dropdown by building a sales view model with a selected category ID and a categories list, wired in the sales controller index action via the categories repository.
Implement a print button on the transactions report that triggers window.print via JavaScript and jQuery, and apply CSS print rules to hide non-print areas and support landscape layout.
Learn why clean architecture, against traditional layered and database-centric designs, separates use cases from UI and data access, enabling plugin-based components across MVC apps.
Extract use case interfaces, wire them via constructor dependency injection in the controller, and register transient use cases with a singleton in-memory repository to connect categories.
Explore the implemented use cases for products and transactions, with dependency injection in program startup and controllers, highlighting a sell product use case that records transactions and updates stock.
Install and configure entity framework core packages for the sql plugin and web application using nuget, selecting the latest stable version for sql server, tools, and design.
Run identity db migrations for the account context to create authentication tables. Configure the correct connection string and apply the init identity migration to update the database.
Fix an authorization bug by moving the products action to the sales controller, updating dependency injection, views and partials, and rebuilding to ensure cashier transactions load correctly.
Are you ready to create amazing web applications with the latest and greatest technology from Microsoft? Do you want to get hands-on experience with the Model-View-Controller (MVC) pattern and learn how to craft dynamic web pages with Razor views, Tag Helpers and jQuery in ASP.NET CORE? Do you want to discover how to use Entity Framework Core and SQL Server to work with data? Do you want to secure your web apps with ASP.NET Core Identity and policies? Do you want to follow clean architecture and write code that is easy to maintain and test?
If any of these questions resonate with you, then you are in the right place!
What will this course teach you?
In this course, you will learn how to develop web applications with ASP.NET Core MVC using .NET 10, the newest version of the .NET framework core. You will start with the fundamentals of MVC and create a simple web app without a framework.
Then, you will add ASP.NET Core MVC framework support and learn how to handle requests with controllers, render HTML with views, pass parameters to action methods, and create model classes to load data.
Next, you will implement CRUD (Create, Read, Update, Delete) operations for categories and products using a static repository in ASP.NET Core MVC.
You will learn how to use ASP.NET Core Tag Helpers to create navigation links, forms, and hidden fields.
You will also learn how to validate user input with data annotations and custom validation attributes in ASP.NET Core.
After that, you will work on the cashier’s console for the supermarket management system. You will use partial views, jQuery, and ViewComponents to create interactive and reusable UI components in ASP.NET Core MVC.
You will also learn how to create a sales form and a transactions report with CSS for printing.
Then, you will learn to adopt clean architecture and integrate it into your ASP.NET Core MVC project. You will refactor your code to follow the principles of separation of concerns, dependency inversion, and single responsibility.
You will learn how to organize your code into projects and layers, and how to use dependency injection to decouple your classes in your ASP.NET Core MVC app.
Next, you will use Entity Framework Core and SQL Server to replace your static repository with a real database.
You will learn how to use migrations, query data with LINQ, and update data with change tracking.
Finally, you will implement authentication and authorization with Identity and policies. You will learn how to scaffold Identity, create user accounts, roles, and permissions, and limit user access based on policies. You will also learn how to display the cashier name on the sales form.
What are the benefits of taking this course?
By taking this course, you will:
Gain a solid understanding of ASP.NET Core MVC and the MVC pattern
Learn how to use ASP.NET Core Razor views and Tag Helpers to create dynamic web pages
Learn how to use Entity Framework Core and SQL Server to store and manipulate data
Learn how to implement authentication and authorization with ASP.NET Core Identity and policies
Learn how to adopt clean architecture and write maintainable and testable code
Build a complete web application with ASP.NET Core MVC from scratch
Get access to the source code and assignments for each section
Who is this course for?
This course is for anyone who wants to learn how to develop web applications with ASP.NET Core MVC using .NET 10. You should have some basic knowledge of C# and HTML, but no prior experience with ASP.NET Core MVC is required.
So, what are you waiting for? Enroll now and start your journey to become an ASP.NET Core MVC developer!