예제 #1
0
        public ApiKey GetApiKey(string apiKey)
        {
            JarsApiKey key = ApiKeyRepository.GetById(apiKey);

            return(key.ConvertTo <ApiKey>());
        }
예제 #2
0
        public bool ApiKeyExists(string apiKey)
        {
            JarsApiKey key = ApiKeyRepository.GetById(apiKey);

            return(key != null);
        }