View Single Post
  #1 (permalink)  
Old December 28th, 2015, 02:40 PM
Glickt Glickt is offline
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2015
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
Default Chapter 5: I needed to add code in HomeController.cs

This is concerning Listing 5-2 on page 112. I needed to add two code statements:

I added the following at the top of the program:

Code:
using MvcMusicStore.Models;
I added the following at the top of class HomeController:

Code:
private MusicStoreDB storeDB = new MusicStoreDB();
When I added the following, I got the program to work.