title: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key "key"
body: <p>My code is like this</p>
  
  <pre><code> namespace DiagnosisApp.Models
  {
      public class ProcedurePrice
      {
          public int ID { get; set; }
  
  
          public int DepartmentID { get; set; }
          public int ProcedureID { get; set; }
          public int InsuranceProviderID { get; set; }
          public int ProcedureCategoryID { get; set; }
          public int ProcedureSubCategoryID { get; set; }
  
  
  
          [ForeignKey("ID")]
          public virtual Department Department { get; set; }
  
          [ForeignKey("ID")]
          public virtual InsuranceProvider InsuranceProvider { get; set; }
  
          [ForeignKey("ID")]
          public virtual ProcedureCategory ProcedureCategory { get; set; }
          [ForeignKey("ID")]
          public virtual ProcedureSubCategory ProcedureSubCategory { get; set; }
      }
  }
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>  public ActionResult Create()
          {
              ViewBag.DepartmentID = new SelectList(db.Departments, "ID", "Name");
              ViewBag.ProcedureSubCategoryID = new SelectList(db.ProcedureSubCategories, "ID", "Name");
              return View();
          }
  </code></pre>
  
  <p>And in my view </p>
  
  <pre><code> @Html.DropDownList("ProcedureID", null, new { @class = "form-control" })
    @Html.ValidationMessageFor(model =&gt; model.ProcedureID)
  </code></pre>
  
  <p>Everything looks okay to me, But it throws an error </p>
  
  <pre><code>There is no ViewData item of type 'IEnumerable&lt;SelectListItem&gt;' that has the key 'ProcedureID'.
  </code></pre>
  
  <p>Can anyone point out what I am doing wrong here?</p>