예제 #1
0
        private bool AssignRoleMenuMapping()
        {
            foreach (TreeNode objNodes in tvMenuRoleManagement.CheckedNodes)
            {
                objRole    = new Role();
                objRoleBiz = new RoleBiz();

                objRole.MenuId    = Convert.ToByte(objNodes.Value);
                objRole.RoleId    = Convert.ToByte(ddlUserRoleList.SelectedValue);
                objRole.CreatedBy = Convert.ToInt16(Session["UserId"].ToString());

                objRoleBiz.AssignRoleMenuMapping(objRole);
            }
            MessageBox(objRoleBiz.AssignRoleMenuMapping(objRole));

            return(true);
        }