I am as many others following the MVC Music Store Tutorial, but I'm stuck with an error.
At page 48, the tutorial says to write an ActionResult-view:
public ActionResult Index()
{
var genres = storeDb.Genres.ToList()
return View(genres);
}
but I get an error on genres. Visual Web Developer says "value cannot be null".
what should I set genres to? var genres = new ??
Thank you!