
Meet Dr. Albert Sadowski, a full stack developer with over 20 years of experience in .NET, Angular, and Azure, who also teaches coding at universities.
Build your first ASP.NET Core web API by creating a books controller with in-memory data, defining a book model, and exposing get all and CRUD endpoints, tested via swagger.
Expose a delete endpoint in the books controller to remove a book by id. Use from query to supply the id and return an action result.
Demonstrate adding items to a books list via an ASP.NET Core post endpoint that accepts a book from the request body and returns a success response.
Update a single item in the books list with a put endpoint, using id from query and a book from body to replace the item at its index.
Create a books controller from scratch, define endpoints and actions, and configure API routing with the API controller attribute, route prefix, and HTTP verbs to handle requests and parameters.
Declare a public action returning an action result as the get endpoint of books controller, using http get with api/books path and the get all route that returns ok.
Create two get endpoints for books: get all and get item, using http get and route parameters. Retrieve all books or a single item by id from the path.
Create a delete item endpoint in ASP.NET basics, binding the id from root and using an HTTP delete attribute on the route delete item/{id} to return 200 ok.
Create a Book model with id and title and implement an add item endpoint in an asp.net controller. Bind the new book from the request body and return created status.
Implement the update item endpoint in the books controller using HTTP put, with id from the route and updated item from the body, returning an ok result.
Learn to declare an ASP.NET endpoint that reads a title parameter from the query string via HTTP GET, using get item by title to return an ok response.
Explore how endpoints are defined by http verbs and paths, and how parameters pass via route, body, or query in the url.
Install the Microsoft Entity Framework Core in-memory NuGet package and create an in-memory database with a database context to map C# objects.
Create a database context class that inherits from DbContext, configure it to use an in-memory database named Books and Authors, and register it in Program.cs via AddDbContext.
Create book and author entities and expose them as DbSet properties in a database context to model books and authors and their relationships with Entity Framework.
Seed the in-memory database by injecting the DbContext into the books controller, add three initial books when the table is empty, and retrieve them with the get all endpoint.
Implement a get item endpoint that retrieves a book by id from the books table using first or default, returning 200 ok or 404 not found via swagger.
Leverage ASP.NET basics in a complete course led by a seasoned full-stack developer. Gain insights in .NET, Angular, and Azure from 20+ years of international projects and university teaching.
Learn ASP.NET basics from a seasoned full-stack developer with 20+ years of experience in .NET, Angular, and Azure, who teaches in a live online university course.
Topics: .NET | ASP.NET | .NET Core | ASP.NET Core | ASP NET Core
This course, instructed by Dr. Albert Sadowski (University Coding Teacher), is a part of the Complete ASP.NET Core Course available on Udemy.
The course provides a structured and comprehensive introduction to web application development using ASP.NET Core. It is designed for students who wish to gain practical knowledge in building dynamic, data-driven web applications from the ground up. Throughout the course, participants will engage in hands-on exercises to create a fully functional application, starting with the development of a simple book list and progressively implementing core CRUD (Create, Read, Update, Delete) operations to manage the application’s data effectively.
The curriculum covers the foundational concepts of controllers and endpoints, enabling students to understand how to handle user requests, process data, and deliver responses in a structured manner. Emphasis is placed on designing maintainable and efficient application architecture, ensuring that learners acquire the skills to organize code logically and implement scalable solutions.
In addition, the course introduces database integration through Entity Framework, allowing students to define entities, configure database contexts, seed tables with initial data, and perform essential data operations. By combining theoretical explanations with practical implementation, the course equips students with a solid understanding of both the principles and practices of ASP.NET Core application development.
Upon completion, participants will have a clear grasp of building functional web applications, managing data through a relational database, and employing best practices in software design. This course lays a strong foundation for further study and professional work in ASP.NET development, preparing students for more advanced topics in modern web application programming.