public ActionResult EmpDeptnoSubmit()
        {
            string value = Request.Form["rdbHdDeptno"];

            DL         = UpdateOperations.getDepts();
            ViewBag.DL = DL;
            if (value == "hiredate")
            {
                DateTime sdate = DateTime.Parse(Request.Form["txtStartDate"]);
                DateTime edate = DateTime.Parse(Request.Form["txtEndDate"]);
                EL = UpdateOperations.GetHdDate(sdate, edate);
                return(View("EmpDeptnoDate", EL));
            }
            else if (value == "deptno")
            {
                int            deptno = int.Parse(Request.Form["ddlDeptno"]);
                List <EMPDATA> L      = DBOperations.GetDept(deptno);
                ViewBag.Dept = deptno;
                return(View("EmpDeptnoDate", L));
            }
            return(View("EmpDeptnoDate"));
        }
 public ActionResult EmpDeptnoDate()
 {
     DL         = UpdateOperations.getDepts();
     ViewBag.DL = DL;
     return(View());
 }