private async Task <IActionResult> AddUrlAction(HttpRequest req) { var dto = await Parser.Parse <UrlRequest>(req); var urlResult = await _urlService.Add(dto.SourceUrl, dto.Tail, dto.Description); var result = new UrlResponse(req.GetHostPath(), urlResult.LongUrl, urlResult.RowKey, urlResult.Description); _logger.LogInformation("Short Url created."); return(new OkObjectResult(result)); }