Example #1
0
        public async Task <ConfigurationItemResponseModel> GetItemAsync(ConfigurationItemType type)
        {
            var domainType = type.ToDomain();

            if (domainType == null)
            {
                _log.Warning($"Configuration item type {type.ToString()} is not recognized");

                return(null);
            }

            var item = await _configurationItemsRepository.GetAsync(domainType.Value);

            return(_mapper.Map <ConfigurationItemResponseModel>(item));
        }