예제 #1
0
        public async Task <IActionResult> getURLs()
        {
            var shortURL = await _repo.getURLs();

            var urlToReturn = _mapper.Map <IEnumerable <URLForReturnDTO> >(shortURL);

            return(Ok(urlToReturn));
        }