In this chapter, we have built our first ASP.NET Core application from scratch. We have learned how the controller fits into the overall ASP.NET MVC application and learned how to build our first controller with the action
methods. We also learned how to use the model and view in our controller. We have also discussed different ways to pass the data from the controller to the view using ViewBag
and ViewData
. We have also learned about filters in ASP.NET MVC and how to make use of predefined filters in ASP.NET Core.
ASP.NET Core 2 Fundamentals
By :
ASP.NET Core 2 Fundamentals
By:
Overview of this book
The book sets the stage with an introduction to web applications and helps you build an understanding of the tried-and-true MVC architecture. You learn all about views, from what is the Razor view engine to tagging helpers. You gain insight into what models are, how to bind them, and how to migrate database using the correct model. As you get comfortable with the world of ASP.NET, you learn about validation and routing. You also learn the advanced concepts, such as designing Rest Buy (a RESTful shopping cart application), creating entities for it, and creating EF context and migrations. By the time you are done reading the book, you will be able to optimally use ASP.NET to develop, unit test, and deploy applications like a pro.
Table of Contents (14 chapters)
Title Page
Packt Upsell
Contributors
Preface
Free Chapter
Setting the Stage
Controllers
Views
Models
Validation
Routing
Adding Features, Testing, and Deployment
Other Books You May Enjoy
Index
Customer Reviews