예제 #1
0
        public async Task <IEnumerable <DiscoveryType> > GetDiscoveryTypes()
        {
            var resultList = new List <DiscoveryType>();

            foreach (var result in await _lustRepository.GetDiscoveryTypes())
            {
                resultList.Add(_mapper.Map <EntityDto.DiscoveryType, DiscoveryType>(result));
            }
            return(resultList);
        }