public async Task <IActionResult> getURL(string urlCode) { var url = await _repo.getURL(urlCode); // var urlsToReturn = _mapper.Map<URLForReturnDTO>(url); // return Ok(urlsToReturn); return(Redirect(url.originalURl)); }