Exemplo n.º 1
0
    public bool GetUserPermission(int userId, int permissionId)
    {
        bool retVal = false;

        UserPermissionsTableAdapter adapter = new UserPermissionsTableAdapter();
        Object obj = adapter.GetUserPermission(userId, permissionId);

        if (obj != null)
        {
            retVal = Convert.ToBoolean(obj);
        }

        return retVal;
    }