Skip to content

Commit

Permalink
using reference was missing
Browse files Browse the repository at this point in the history
Needs to add using to resolve Controller reference

using Microsoft.AspNet.Mvc

reference was just cut off by 1 line, was lines: 6-28 now 5-28 to include the using line.
  • Loading branch information
andrewplummerNZ authored and shirhatti committed Mar 15, 2016
1 parent 339883f commit 9975040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aspnet/tutorials/first-mvc-app/adding-controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Replace the contents of *Controllers/HelloWorldController.cs* with the following
.. literalinclude:: start-mvc/sample/src/MvcMovie/Controllers/HelloWorldController.cs
:language: c#
:linenos:
:lines: 6-28
:lines: 5-28

Every ``public`` method in a controller is callable. In the sample above, both methods return a string. Note the comments preceding each method:

Expand Down

0 comments on commit 9975040

Please sign in to comment.