getting error - There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'DeptId'
<p>I'm getting error while clicking create button, i have created 2 tables "Employee" and "Department" and used entity framework.in those tho tables i have data. but while clicking create button getting error in dropdown list </p>

<pre><code>employee.cs

     public partial class Employee
        {
            public int EmpId { get; set; }
            public string EmpName { get; set; }
            public string EmpLocation { get; set; }
            public string EmpDesignation { get; set; }
            public Nullable&lt;int&gt; DeptId { get; set; }

            public virtual Department Department { get; set; }
        }

    department.cs

      public partial class Department
        {
            [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
            public Department()
            {
                this.Employees = new HashSet&lt;Employee&gt;();
            }

            public int DepartmentId { get; set; }
            public string DeptName { get; set; }

            [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
            public virtual ICollection&lt;Employee&gt; Employees { get; set; }
        }

    EmployeeModel.context.cs

        public partial class EmployeeDBEntities1 : DbContext
        {
            public EmployeeDBEntities1()
                : base("name=EmployeeDBEntities1")
            {
            }

            protected override void OnModelCreating(DbModelBuilder modelBuilder)
            {
                throw new UnintentionalCodeFirstException();
            }

            public virtual DbSet&lt;Department&gt; Departments { get; set; }
            public virtual DbSet&lt;Employee&gt; Employees { get; set; }
        }
</code></pre>

<p>EmployeeController</p>

<pre><code> public class EmployeeController : Controller
    {
        EmployeeDBEntities1 db = new EmployeeDBEntities1();

        public ActionResult Index()
        {

            return View(db.Employees.ToList());

        }
        [HttpGet]
        public ActionResult Create()
        {
            return View();

        }
        [HttpPost]
        public ActionResult Create(Employee employee)
        {

            if (ModelState.IsValid)
            {
                db.Employees.Add(employee);
                db.SaveChanges();
                return RedirectToAction("Index");
            }
            return View(employee);

                }
    }

        &lt;div class="form-group"&gt;
            @Html.LabelFor(model =&gt; model.DeptId, "DeptId", htmlAttributes: new { @class = "control-label col-md-2" })
            &lt;div class="col-md-10"&gt;
                @Html.DropDownList("DeptId", null, htmlAttributes: new { @class = "form-control" })
                @Html.ValidationMessageFor(model =&gt; model.DeptId, "", new { @class = "text-danger" })
            &lt;/div&gt;
        &lt;/div&gt;
</code></pre>