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

- 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
The next change that we need to make to our controller, is to add a method to it. Well, not just *any* method—an “action” method.
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/v2.2 -b adding-an-action-to-a-controller
Additional Learning
For more information about methods and access modifiers check out these pages on MSDN.
Keyboard Shortcuts
-
F5
- Start debugging (i.e. build and run your website/project) -
CTRL+S
- Save Current File
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
PLUS
kevin hudson
Courses Plus Student 11,987 Points1 Answer
-
dodders
Python Development Techdegree Graduate 38,680 Points1 Answer
-
Nathan Partridge
57,434 Points1 Answer
-
Ethan M
10,637 Points3 Answers
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