This commit is contained in:
Вячеслав Иванов 2024-04-03 09:44:42 +04:00
parent c9b5db7d4b
commit 4471903430

View File

@ -54,15 +54,7 @@
</table>
<div class="d-flex justify-content-center align-items-center">
@{
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"]);
<div class="m-1">
<input type="number" class="form-control" min="1" step="1" asp-action="Mails" name="page" value="@(page)" readonly>
</div>