Exemplo n.º 1
0
        public int Create(int RoleID, int ActionID, bool Allow)
        {
            int result            = 1;
            SecurityRoleAction sr = SecurityRoleAction.CreateSecurityRoleAction(1, RoleID, ActionID, Allow);

            context.AddToSecurityRoleActions(sr);
            return(result);
        }