E-Commerce App With C# And Onion Architecture
Published 6/2025
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 2.78 GB | Duration: 8h 3m
Published 6/2025
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 2.78 GB | Duration: 8h 3m
Build a scalable e-commerce web application using C# and ASP.NET Core with Onion Architecture.
What you'll learn
Onion Architecture & Layered Design
Learn how to build scalable, modular applications using Onion Architecture and Domain-Driven Design with clear layer separation.
E-Commerce Development with ASP.NET Core
Build a full-stack e-commerce web app using ASP.NET Core MVC and implement essential features like product management and user authentication.
Entity Framework Core & Database Design
Use Entity Framework Core with the Code-First approach, manage migrations, and perform CRUD operations efficiently with SQL Server.
Authentication & Authorization with ASP.NET Identity
Dependency Injection & Repository Pattern
Learn Dependency Injection (DI) for better maintainability and apply the Repository Pattern to separate the data access logic from the business layer.
Unit of Work & Transaction Management
Implement the Unit of Work pattern to handle database transactions efficiently and maintain data consistency across multiple operations
Onion Architecture in Real Projects
Apply Onion Architecture principles in real-world projects, ensuring scalability, maintainability, and a clear separation of concerns.
Requirements
This course is designed to be beginner-friendly, but having some basic programming knowledge will help you get the most out of it. Here are the recommended prerequisites
Basic Knowledge of C# Understanding variables, loops, conditional statements, classes, and object-oriented programming (OOP) will be beneficial.
Familiarity with ASP.NET Core (Optional) Prior experience with ASP.NET Core MVC or Web API is helpful, but all necessary concepts will be explained throughout the course.
Basic SQL and Database Concepts Knowing SQL queries, tables, relationships, and basic CRUD operations will make database-related topics easier to follow.
Installation and Use of Visual Studio The course will use Visual Studio and SQL Server Management Studio (SSMS). Basic knowledge of installing and using these tools is recommended.
Willingness to Code and Learn If you're interested in layered architecture (Onion Architecture), SOLID principles, and Entity Framework Core, this course is perfect for you!
Everything will be explained step by step, so advanced ASP.NET Core knowledge is not required. Anyone with basic programming skills can follow along.
Description
This course is designed for developers who want to build a professional, scalable, and maintainable e-commerce web application using C# and ASP.NET Core. In modern web development, following best practices and architectural patterns is essential to create flexible, high-performance, and easily maintainable applications. That’s why we will implement Onion Architecture, a widely used layered architectural pattern, to develop a modular, scalable, and well-structured e-commerce platform. What will you learn in this course?How to build a fully functional and scalable e-commerce web application using Onion Architecture with ASP.NET Core.How to use ASP.NET Core MVC to create modern and efficient web applications with a clear separation of concerns.How to manage relational databases using Entity Framework Core, perform migrations, CRUD operations, and apply the Code-First development approach.How to implement secure user authentication and authorization using ASP.NET Identity, including role-based access control (RBAC).How to apply Repository Pattern, Unit of Work, and Dependency Injection to build a clean, modular, and testable architecture.How to follow SOLID principles and best coding practices to write high-quality, reusable, and maintainable code. Who is this course for?Junior to mid-level developers who want hands-on experience with enterprise-level web applications.Freelancers and entrepreneurs who want to build their own custom e-commerce platform from scratch.University students and fresh graduates looking to specialize in C# and ASP.NET Core development.Software engineers who want to learn modern architectural patterns to structure large-scale applications.By the end of this course, you will have a fully working e-commerce web application, built with modern technologies and industry best practices. You will be able to design, develop, and deploy scalable ASP.NET Core applications using Onion Architecture and Entity Framework Core. Join now and take your C# and ASP.NET Core development skills to the next level!
Overview
Section 1: Project Setup & Base Structure & Introduction
Lecture 1 E-Commerce Project Overview – What We’ll Build Together
Lecture 2 Build a Real-World E-Commerce App with ASP.NET Core MVC – What You'll Learn
Lecture 3 Create Project
Section 2: Layer Initialization & Package Installations
Lecture 4 Create Onion Layers
Lecture 5 Ecommerce-Web Layer Packages installation
Lecture 6 Ecommerce-Application Layer Packages installation
Lecture 7 Ecommerce-Domain Layer Packages installation
Lecture 8 Ecommerce-Infrastructer Layer Packages installation
Section 3: Project Reference Setup & File Organization
Lecture 9 Ecommerce-Add Project References
Lecture 10 Ecommerce-moving files and folders into layers
Lecture 11 Ecommerce-moving files and folders into layers - fix and check
Section 4: Web Layer Modifications & Routing
Lecture 12 Initial Configuration of the Web Layer
Lecture 13 Route Mapping and Startup Configuration
Section 5: Customer Service & UI Interaction
Lecture 14 Creating Entity Classes in the Domain Layer
Lecture 15 Coding the ApplicationUser Class with Identity Integration
Lecture 16 Implementing the Cart Entity for Shopping Basket Logic
Lecture 17 Defining the Category Entity for Product Classification
Lecture 18 Coding OrderDetails Entity for Order Item Breakdown
Lecture 19 Creating OrderProduct Entity for Main Order Information
Lecture 20 Product Entity for Managing Core Product Information
Section 6: Entity Definitions & Database Context Configuration
Lecture 21 ProductImage Entity Implementation
Lecture 22 Introduction to ApplicationDbContext and Core Structure
Lecture 23 Defining DbSets in ApplicationDbContext
Lecture 24 OnModelCreating Method and Custom Configurations
Lecture 25 Introduction to Migration in Entity Framework
Lecture 26 Using the Database Update Command
Section 7: Interfaces Setup
Lecture 27 Creating Interface Files in the Domain Layer
Lecture 28 Writing the IRepository Interface
Lecture 29 Implementing the Remaining Interfaces
Lecture 30 Detailed Explanation of Interface Files
Section 8: Repositories Setup
Lecture 31 Creating Repositories Folder&Implementing Repository Classes in Onion Archi…
Lecture 32 Repository Coding Walkthrough - Part 1
Lecture 33 Repository Coding Walkthrough (GetAll Method) - Part 2
Lecture 34 Repository Coding Walkthrough GetFirstOrDefault Method) - Part 3
Lecture 35 Repository Coding Walkthrough (Remove, RemoveRange, Update) - Part 4
Lecture 36 AplicationUserRepository Coding EN
Lecture 37 OrderProductRepository Coding
Lecture 38 Consistent Repository Coding for All Models
Lecture 39 UnitOfWork Setup for Clean Architecture
Lecture 40 Configuring DI for Generic Repository and UnitOfWork
Section 9: ViewModels
Lecture 41 Creating the CartVM ViewModel and Configuring
Lecture 42 Application Layer - OrderVM Creation and Explanation
Lecture 43 Handling Product and Categories with ProductVM
Section 10: Services
Lecture 44 Structuring Admin Services in the Application Layer
Lecture 45 ProductService Coding Walkthrough GetProductVM
Lecture 46 Implementing Create, Read and Update in CategoryService
Lecture 47 CategoryService Implementing DeleteCategory
Section 11: Admin Product Services
Lecture 48 Product Service 1
Lecture 49 Product Service 2
Lecture 50 Product Service 3
Lecture 51 Product Service 4
Section 12: Admin OrderService
Lecture 52 OrderService Basics Fetching Orders with GetAll
Lecture 53 OrderService Implementing the Details Method
Lecture 54 OrderService Implementing the Delivered Method
Lecture 55 OrderService Implementing the CancelOrder Method
Lecture 56 OrderService Implementing the UpdateOrderDetails Method
Section 13: Admin CategoryController
Lecture 57 Admin CategoryController Setup and Index Method
Lecture 58 Admin Category Management Create Edit Delete
Lecture 59 Category Create View Building a Razor Form with Tag Helpers
Lecture 60 Category Index View Building a Razor Form with Tag Helpers
Lecture 61 Category Edit View Building a Razor Form with Tag Helpers
Lecture 62 Register CategoryService (and other services) in Program.cs and then walk
Section 14: Admin Product Controller
Lecture 63 Admin ProductController Setup and All Metods
Lecture 64 Admin ProductController Upsert View
Lecture 65 Admin ProductController Index View
Lecture 66 Admin ProductController Testing
Section 15: Admin OrderController
Lecture 67 Admin OrderController Setup and All Metods
Lecture 68 Scaffolding and Importing OrderController Views in ASP.NET Core MVC
Lecture 69 Admin OrderController Index And Detail Views Explanations
Section 16: Identity & Authentication Services
Lecture 70 ApplicationLayer Add View Models for Users
Lecture 71 User Service Code
Lecture 72 User Service Code Register Method
Lecture 73 User Service Code Login and Logout Methods
Lecture 74 AccountController Setup
Lecture 75 AccountController All Methods
Lecture 76 Register View
Lecture 77 Register Page Fails. Here’s How to Fix Identity Configuration
Lecture 78 program.cs - Session And Cookies Setup
Lecture 79 Analyze the cause and apply the necessary fixes
Lecture 80 Assigning Admin Role to the First User in ASP.NET Core Identity
Lecture 81 Implementing Login and Logout in ASP.NET Core Identity
Lecture 82 Exploring ASP.NET Core Identity Database
Section 17: Customer Area Controllers & Services
Lecture 83 Create Customer services basic Structor
Lecture 84 HomeService Get Methods
Lecture 85 HomeService SaveDetails Method
Lecture 86 CartService GetCartForUserAsync Method
Lecture 87 CartService GetUserId and GetCartViewModelAsync Methods
Lecture 88 CartService PlaceOrderAsync Method
Lecture 89 CartService IncreaseCartItem and DecreaseCartItem Methods
Lecture 90 CustomerOrderService Methods
Lecture 91 Create and Setup Customer Controller
Lecture 92 Customer HomeController Index Method And View - Create
Lecture 93 Customer HomeController Details Method And View
Lecture 94 Setting Up Area Routing and DI for Customer Controllers
Section 18: Cart and Order Processes (Customer)
Lecture 95 Verifying Index and Details Pages in Customer Area
Lecture 96 Developing Cart Logic in Customer Area – Full Controller Setup
Lecture 97 ASP.NET Core MVC - Dynamic Cart Page Implementation
Lecture 98 Validating CartController Actions - Add, Increase, Decrease, Remove
Lecture 99 Customer Checkout and ORder Flow
Lecture 100 Customer Area Order Workflow - Service Configuration and Controller Logic
Lecture 101 Customer Order Management - Index View Creation and Functional Testing
Section 19: Web Layer - Layout, Navigation and Authorization
Lecture 102 Routing Setup - Start in Customer Area Instead of Admin
Lecture 103 Building User-Friendly Navigation
Lecture 104 Implementing a Separate Layout for the Admin Area
Lecture 105 Admin Area Protection with [Authorize] Attribute
Lecture 106 Building a User-Friendly AccessDenied Page
Those Who Want to Learn C# and ASP.NET Core A perfect starting point for developers who want to build real-world projects with C# and ASP.NET Core.,Junior and Mid-Level Developers Software developers who want to gain in-depth knowledge of ASP.NET Core MVC, Web API, Authentication & Authorization.,Freelancers and Entrepreneurs Those who want to start their own e-commerce project or build e-commerce applications as freelancers.,University Students and Fresh Graduates Students who want to specialize in C# and .NET Core, gain hands-on experience, and strengthen their resumes.,This course is perfect for anyone with basic programming knowledge who wants to learn how to develop a professional web application using ASP.NET Core and Onion Architecture.