Created
December 20, 2012 07:28
-
-
Save bzbetty/4343542 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[AutoMap(typeof(EventListViewModel))] | |
public ActionResult Index(int? page) | |
{ | |
page = page ?? 1; | |
var entities = //load data from database | |
.AsPagination(page.Value, 20); //pagination method from MVC Contrib | |
return View(entities); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment