public ActionResult Department(Sal_Dept_DesigModel objSal_Dept_Desig, string submit)
        {
            if (!String.IsNullOrEmpty(submit.Trim()))
            {
                DepartmentModel objDepartmentModel = new DepartmentModel();
                objDepartmentModel.Department   = objSal_Dept_Desig.Department;
                objDepartmentModel.DepartmentID = objSal_Dept_Desig.DepartmentID;
                switch (submit.Trim())
                {
                case "Update":
                    objDepartmentModel.AddEditDepartment(objDepartmentModel, clsCommon.Update);
                    BingModelData(objSal_Dept_Desig);
                    break;

                case "Add":
                    objDepartmentModel.AddEditDepartment(objDepartmentModel, clsCommon.Insert);
                    BingModelData(objSal_Dept_Desig);
                    break;

                case "Search":
                    BingModelData(objSal_Dept_Desig);
                    if (objSal_Dept_Desig.Department != null || !String.IsNullOrEmpty(objSal_Dept_Desig.Department))
                    {
                        objSal_Dept_Desig.departmentList = objDepartmentModel.GetDepartmentList(objSal_Dept_Desig.Department).ToList();
                    }
                    else
                    {
                        objSal_Dept_Desig.DepartmentID = 0;
                    }
                    break;
                }
            }
            return(View("~/Views/sal_Dept_Desig/Index.cshtml", objSal_Dept_Desig));
        }