I am trying use dropdown to insert values to Database. Values from dropdown can insert into database all data completed. But it still alert error in View.
Value cannot be null
 @Html.DropDownListFor(Model => Model.JCY_SEC, new SelectList(ViewBag.Names as System.Collections.IEnumerable, "SECID", "SecTH"), "Select a Section")  
This is my controller
[HttpGet]
public ActionResult EmployeeView()
{
    ViewBag.Names = db.HRset_Section.ToList();
    return View();
}
and this is my insert method
public ActionResult EmployeeView(EMPJCYMODEL customer, FormCollection collection)
{
    string constr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
    using (SqlConnection con = new SqlConnection(constr))
    {
        string query = "INSERT INTO HR_EMPLOYEE(JCY_EMPNO, JCY_EMP_NAME,JCY_EMP_SUR,st_date,JCY_SEC) VALUES(@JCY_EMPNO, @JCY_EMP_NAME,@JCY_EMP_SUR,@st_date,@JCY_SEC)";
        query += " SELECT SCOPE_IDENTITY()";
        using (SqlCommand cmd = new SqlCommand(query))
        {
            cmd.Connection = con;
            con.Open();
            cmd.Parameters.AddWithValue("@JCY_EMPNO", customer.JCY_EMPNO);
            cmd.Parameters.AddWithValue("@JCY_EMP_NAME", customer.JCY_EMP_NAME);
            cmd.Parameters.AddWithValue("@JCY_EMP_SUR", customer.JCY_EMP_SUR);
            cmd.Parameters.AddWithValue("@st_date", customer.st_date);
            cmd.Parameters.AddWithValue("@JCY_SEC", customer.JCY_SEC);
            customer.JCY_EMPNO = cmd.ExecuteScalar().ToString();
            con.Close();
        }
    }
    return View(customer);
}
