This course will be retired on July 14, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Adding a Data Model 4:51
- Updating the Data Model 2:39
- Creating a Data Model 2 objectives
- Using Strongly Typed Views 6:46
- Using Strongly Typed Views 2 objectives
- Improving Our View Layout 7:45
- Using Razor to Render Boolean Values 1 objective
- Applying Software Design Principles 3:26
- Software Design Principles Review 5 questions
- Adding the Repository 7:55
- Adding Repository Methods 2 objectives
- Updating the Controller 7:16
- Optional URL Parameters Review 5 questions
- Using the Visual Studio Debugger 7:07
- Validating a Bug Fix with the Debugger 5:23
- Section Review 5 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Now that we have our comic books repository, let’s update our controller to use it.
Follow Along
To follow along commiting your changes to this course, you'll need to fork the aspnet-comic-book-gallery repo. Then you can clone, commit, and push your changes to your fork like this:
git clone <your-fork>
cd aspnet-comic-book-gallery
git checkout tags/v4.7 -b updating-the-controller
Keyboard Shortcuts
-
CTRL+COMMA
- Opens the “Navigate To” dialog -
CTRL+PERIOD
- Opens the quick actions popup
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Eric Wilson
9,380 Points1 Answer
-
Mahmoud Nasser
5,507 Points0 Answers
-
Cody Tapp
9,667 Points1 Answer
-
Luke Gibson
3,503 PointsThe type of namespace name '_comicBookRepository' could not be found
Posted by Luke GibsonLuke Gibson
3,503 Points1 Answer
-
olu adesina
23,007 Pointsdoes the use of an id at the end of urls mean that all data models classes must have id of type int
Posted by olu adesinaolu adesina
23,007 Points0 Answers
-
Jake Ford
9,230 Points1 Answer
-
PLUS
Christopher Debove
Courses Plus Student 18,373 Points2 Answers
-
matthewgaikema
6,059 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up