loading...

re: Pagination For Search Results ASP.NET MVC 5 VIEW POST

FULL DISCUSSION
 
if (page > 0)
{
    page = page;
}
else
{
    page = 1;
}

Can be replaced with

if (page <= 0) {
    page = 1;
}
Code of Conduct Report abuse