public async Task <IActionResult> RetrieveRecord(string key)
        {
            try
            {
                Guard.ArgumentNotNullOrEmpty(nameof(key), key);
                var tenant = FetchTenantFromUser();
                var record = await _urlShortenerService.GetShortUrlAsync(key, tenant);

                if (record == null)
                {
                    return(new NotFoundObjectResult(key));
                }
                var jsonResult = new JsonResult(record)
                {
                    StatusCode = StatusCodes.Status200OK
                };
                return(jsonResult);
            }
            catch (Exception e)
            {
                _logger.LogError(e.Message);
            }
            return(new BadRequestObjectResult("Invalid Request"));
        }