Пример #1
0
 public ViewResult Query(ENodebQueryViewModel viewModel)
 {
     viewModel.InitializeTownList(_townRepository, viewModel);
     viewModel.SetItems(1, pageSize);
     return View(viewModel);
 }
Пример #2
0
 public ViewResult Query(int page = 1)
 {
     ENodebQueryViewModel viewModel = new ENodebQueryViewModel();
     viewModel.InitializeTownList(_townRepository);
     viewModel.SetItems(page, pageSize);
     return View(viewModel);
 }