コード例 #1
0
        private static Access GetAccessInner(string instanceKey, int userId)
        {
            if (userId <= 0)
            {
                return(new Access());
            }
            if (String.IsNullOrEmpty(instanceKey))
            {
                return(new Access());
            }

            Access user = repository.FindOne(new Access {
                UserId = userId, InstanceKey = instanceKey
            });

            return(user);
        }