// // GET: /SampleData/ public ActionResult Index(int? page = 1) { IPagedList<SampleDataViewModel> pagedList = null; using (ModelRepository db = new ModelRepository(this._factory.GetDatabaseObject())) { SampleDataService service = new SampleDataService(db); pagedList = service.GetPagedList(this._toViewModel, page ?? 1); } return View(pagedList); }