title: ASP.NET MVC 5 tutorial error: The type or namespace name could not be found
body: <p>I'm working through an ASP.NET MVC 5 tutorial on <a href="https://www.youtube.com/watch?v=VAtVv1Q7ufM" rel="nofollow noreferrer">YouTube</a>. I'm really enjoying it. However, I'm stuck on what seems to be a strange error. Strange meaning I think I have everything typed in as in the tutorial, but VS2013 is flagging me, and I can't figure out what might be wrong. Defining the math variable as a Course seems fine. However, then it doesn't like math.</p>
  
  <p><img src="https://i.stack.imgur.com/eFVES.png" alt="enter image description here"></p>
  
  <p>Models/Course.cs</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  
  namespace MyfirstProject.Models
  {
      public class Course
      {
          int CourseID { get; set; }
          string CourseName { get; set; }
          int TotalCredits { get; set; }
      }
  }
  </code></pre>
  
  <p>Controllers/XyzController.cs</p>
  
  <pre><code>using MyfirstProject.Models;
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  
  namespace MyfirstProject.Controllers
  {
      public class XyzController : Controller
      {
          // GET: Xyz
          public ActionResult Abc()
          {
              Course math = new Course();
              .....
              .....
  </code></pre>