Ejemplo n.º 1
0
        public ActionResult CreateEmployee()
        {
            var gender = new List <DDL_Data> {
                new DDL_Data()
                {
                    vchText = "Male", vchValue = "Male"
                },
                new DDL_Data()
                {
                    vchText = "Female", vchValue = "Female"
                },
                new DDL_Data()
                {
                    vchText = "prefer not to say", vchValue = "prefer not to say"
                }
            };

            ViewBag.gender     = gender.ToList();
            ViewBag.courseList = _course.CourseList1().ToList();
            //ViewBag.branchList = _branches.BranchList().ToList();
            ViewBag.designationList  = _designation.DesignationList().ToList();
            ViewBag.joinCategoryList = _joincategory.JoinCategoryList().ToList();
            ViewBag.roleList         = _role.RoleList().ToList();
            ViewBag.levelList        = _level.LevelList().ToList();
            ViewBag.employeeList     = _employee.EmployeeList1().ToList();
            return(View());
        }