Пример #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);
        }