Beispiel #1
0
        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 }));
            }
        }