Presnyakova V.V Lab_7 #8

Closed
Victoria_Presnyakova wants to merge 36 commits from Lab_7 into Lab_6
Showing only changes of commit 2aeb4f6896 - Show all commits

View File

@ -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<List<MessageInfoViewModel>>($"api/client/getmessages?clientId={APIClient.Client.Id}"));
}
}
}