HTML and CSS Reference
In-Depth Information
Figure 7-4. Adding the Index view
7.
open your webMatrix project from Chapter 4 , copy the entire contents of
Default.cshtml , and paste it into the new Index.cshtml file, replacing the default
implementation.
8.
From the Solution Explorer, right-click the Controllers folder and select the
Add ➤ Controller link.
9.
in the Add Controller dialog box, enter the name HomeController and make sure the
“Empty MVC controller” template is selected as shown in Figure 7-5 .
 
Search WWH ::




Custom Search