Exemplo n.º 1
0
        public async Task <IActionResult> checkOriginalURL([FromBody] URLShort req)
        {
            var url = await _repo.checkOriginalURL(req.originalURl);

            if (url?.originalURl.Length > 0)
            {
                return(Ok(url));
            }
            return(Ok(false));
        }