This commit is contained in:
parent 066eae705e
commit 30faefcee2

View File

@ -51,11 +51,11 @@
</tbody>
</table>
<a href="@Url.Action("Mails", new { page = ViewBag.Page - 1 > 1 ? ViewBag.Page - 1 : 1 }) class="btn btn-primary">
<a href="@Url.Action("Mails", new { page = ViewBag.Page - 1 >= 1 ? ViewBag.Page - 1 : 1 })" class="btn btn-primary">
Назад
</a>
<p>Страница @ViewBag.Page</p>
<a href="@Url.Action("Mails", new { page = ViewBag.Page + 1 }) class="btn btn-primary">
<a href="@Url.Action("Mails", new { page = ViewBag.Page + 1 })" class="btn btn-primary">
Вперед
</a>
}