// GET: Employee/Create
        public ActionResult Create()
        {
            if (Session["employee"] == null)
            {
                return(RedirectToAction("Login", "Login", new { returnurl = HttpContext.Request.Url }));
            }
            else
            {
                EmployeeRole eRole = new EmployeeRole();

                CRoleList roles = new CRoleList();
                roles.Load();

                eRole.NewRole = roles;

                eRole.NewEmployee = new CEmployees();


                return(View(eRole));
            }
        }
示例#2
0
        public override object Clone()
        {
            CRoleList obj = new CRoleList();

            return(obj);
        }