diff --git a/QRCodeService/Controllers/RedirectController.cs b/QRCodeService/Controllers/RedirectController.cs index 9c51f21..aabac85 100644 --- a/QRCodeService/Controllers/RedirectController.cs +++ b/QRCodeService/Controllers/RedirectController.cs @@ -21,7 +21,7 @@ namespace QRCodeService.Controllers public async Task Index(string shortCode) { var link = await queries.GetLinkAsync(shortCode); - return View(new {link.FullUrl }); + return View(link); } } } diff --git a/QRCodeService/Views/Redirect/Index.cshtml b/QRCodeService/Views/Redirect/Index.cshtml index ac3d89a..1887b40 100644 --- a/QRCodeService/Views/Redirect/Index.cshtml +++ b/QRCodeService/Views/Redirect/Index.cshtml @@ -2,18 +2,19 @@ For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 *@ @{ - - - - - - -
- loading... -
- - - } +@model QRCodeService.Application.Queries.Link + + + + + + +
+ loading... +
+ + + \ No newline at end of file