public async Task <IActionResult> GetInfoUrlByCode(string Code) { try { var result = await _urlService.GetInfoUrl(Code); if (result == null) { return(this.NotFound()); } return(Ok(result)); } catch (Exception ex) { return(BadRequest(new { message = ex.Message })); } }