public async Task <IActionResult> RedirectAction(string shortenId) { var foundLink = await _LinksRepository.GetLinkByShortenIdAndIncCounterAsync(shortenId); if (string.IsNullOrWhiteSpace(foundLink?.OriginalUrl)) { return(NotFound("Full link not found")); } return(Redirect(foundLink.OriginalUrl)); }