See how to work with controllers, actions, and views in an ASP.NET MVC application, to learn about their primary responsibilities and the conventions they follow.
- [Instructor] Let's continue working with our sample … application and delve deeper into MVC concepts. … We'll add the ability to manage courses for Rue Academy. … The first thing to think about, … is the model that represents a course. … Right-click on the model's folder and select add, class. … I'll name it Course. … It'll be a simple class with properties … that correspond to the attributes of a course. … I'll add the properties using a shortcut, … so type prop and hit the tab key twice. … This will be an int for the course id. … Then a string property for the name. … And another string property for the course description. … Finally, I'll add a Boolean property … to indicate if it's a virtual course. … Now that our model's ready, let's add a new … controller that'll be responsible for managing courses. … Right-click on the controller's folder, … choose add and then controller. … I'll select MVC 5 Controller … with read right actions and click add. … And name it Course Controller. …
Author
Released
3/7/2019- Capabilities of the ASP.NET platform
- Running and debugging a web application
- Creating a Web Forms application
- Building dynamic pages with Razor syntax
- Working with models and forms in ASP.NET MVC
- Data access with Entity Framework
- Building RESTful services using ASP.NET Web API
- Real-time web functionality with SignalR
Skill Level Beginner
Duration
Views
Related Courses
-
ASP.NET Core New Features
with Phil Japikse3h 48m Intermediate
-
Introduction
-
What you should know1m 34s
-
1. Get Started with ASP.NET Development
-
Explore the ASP.NET platform4m 47s
-
Visual Studio basics5m 49s
-
-
2. Build Dynamic Websites with ASP.NET Web Forms
-
Introduction to Web Forms3m 22s
-
Understand state management5m 26s
-
-
3. Programming with ASP.NET Web Pages
-
4. Build Web Applications with ASP.NET MVC
-
Sample web application setup5m 37s
-
Work with models and forms7m 56s
-
5. Work with Data
-
Querying data with LINQ7m 1s
-
6. Create RESTful Services with Web API
-
Web API with Ajax5m 22s
-
7. Real-Time Web Functionality with SignalR
-
Conclusion
-
Next steps1m 33s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Implement controllers and views