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"]);