public ActionResult Index(int?page) { var pagedList = _domain.Get().ToPagedList(new ViewModel.Filters.EventoListFilter { Page = page ?? 1 }, 5); ViewBag.NextPage = page + 1; return(View(pagedList)); }
public ActionResult Index(TipoEventoEnum id) { ViewBag.TipoEvento = id; var pagedList = _domain.Get().ToPagedList(id != TipoEventoEnum.Indefinido ? new EventoListFilter { TipoEvento = id } : null); return(View(pagedList)); }
public ActionResult Index(EventoListFilter filter) { ViewBag.Filter = filter; return(View(_domain.Get().ToPagedList(filter))); }
// GET: Admin/Home public ActionResult Index() { return(View(new ManageVM(_usuarioDomain.Get(), _permutaDomain.Get(), _eventoDomain.Get(), _perguntaFrenquenteDomain.Get(), _cargoDomain.Get()))); }