title: Data Binding in Drop Down List
body: <p>I am practicing MVC 4 Razor,i want to display the list data in Dropdownlist,I have tried many options but i am not able to populate data ,i am using WCF Service
  I tried using List and IEnum i am able get data in controller but how to display data in drop down list.I have pasted my code here</p>
  
  <pre><code>   public List&lt;Employee&gt; GetEmployeeList()
      {
          List&lt;Employee&gt; lstEmp = new List&lt;Employee&gt;();
          try
          {
              sqlConn = new SqlConnection(strConn);
              sqlConn.Open();
              query = "select ID,FirstName from Employee";
              sqlcmd = new SqlCommand(query, sqlConn);
              SqlDataReader dr = sqlcmd.ExecuteReader();                
              if (dr.HasRows)
              {
                  Employee objHeader = new Employee();
                  objHeader._ID = 0;
                  objHeader._FirstName = "Select Employee";
                  lstEmp.Add(objHeader);                    
                  while(dr.Read())
                  {
                      Employee objemp = new Employee();
                      objemp._ID = (int)dr["ID"];
                      objemp._FirstName = dr["FirstName"].ToString();
                      lstEmp.Add(objemp);
                  }
  
              }
              else
              {
                  Employee objNo =new Employee();
                  objNo._ID = 0;
                  objNo._FirstName = "No Records Found";
                  lstEmp.Add(objNo);
              }
          }
          catch(Exception err)
          {
  
          }
          sqlcmd.Dispose();
          sqlConn.Close();
          return lstEmp;
      }
  
       public ViewResult Crud()
      {
          pxy.Open();
          emplist = pxy.GetEmployeeList().ToList();          
          IEnumerable&lt;Employee&gt; empEnum = emplist;            
          ViewData["lstEmp"] = new SelectList(empEnum);
          pxy.Close();            
          return View();   
      }
      @Html.DropDownList("Employee", ViewData["lstEmp"] as SelectList)
  </code></pre>
  
  <p>Please Help me out.</p>