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)); }
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)); }