// // GET: /Employee/ //[OutputCache(CacheProfile = "Long", VaryByHeader = "X-Requested-With;Accept-Language", Location = OutputCacheLocation.Server)] public ActionResult Index(int? page = 1) { IPagedList<EmployeeViewModel> list = null; using (ModelRepository db = new ModelRepository(this._factory.GetDatabaseObject())) { EmployeeService service = new EmployeeService(db); list = service.GetPagedList(this._toViewModel, page ?? 1); } return View(list); }