From 447190343055e7242b6367a25d6d5d58a6db4a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D1=8F=D1=87=D0=B5=D1=81=D0=BB=D0=B0=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Wed, 3 Apr 2024 09:44:42 +0400 Subject: [PATCH] fix --- Pizzeria/PizzeriaClientApp/Views/Home/Mails.cshtml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Pizzeria/PizzeriaClientApp/Views/Home/Mails.cshtml b/Pizzeria/PizzeriaClientApp/Views/Home/Mails.cshtml index dd57b3e..ee89a96 100644 --- a/Pizzeria/PizzeriaClientApp/Views/Home/Mails.cshtml +++ b/Pizzeria/PizzeriaClientApp/Views/Home/Mails.cshtml @@ -54,15 +54,7 @@
@{ - int page; - if (Context.Request.Query.TryGetValue("page", out var pageValue) && !string.IsNullOrEmpty(pageValue)) - { - page = int.Parse(pageValue); - } - else - { - page = 1; - } + int page = int.Parse(Context.Request.Query["page"]);