diff --git a/JewelryStoreClientApp/Controllers/HomeController.cs b/JewelryStoreClientApp/Controllers/HomeController.cs index 3b5d82c..1189237 100644 --- a/JewelryStoreClientApp/Controllers/HomeController.cs +++ b/JewelryStoreClientApp/Controllers/HomeController.cs @@ -149,5 +149,14 @@ namespace JewelryStoreClientApp.Controllers return count * (prod?.Price ?? 1); } + [HttpGet] + public IActionResult Mails() + { + if (APIClient.Client == null) + { + return Redirect("~/Home/Enter"); + } + return View(APIClient.GetRequest>($"api/client/getmessages?clientId={APIClient.Client.Id}")); + } } } \ No newline at end of file