Exemple #1
0
        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));
        }
Exemple #3
0
 public ActionResult Index(EventoListFilter filter)
 {
     ViewBag.Filter = filter;
     return(View(_domain.Get().ToPagedList(filter)));
 }
Exemple #4
0
 // GET: Admin/Home
 public ActionResult Index()
 {
     return(View(new ManageVM(_usuarioDomain.Get(), _permutaDomain.Get(),
                              _eventoDomain.Get(), _perguntaFrenquenteDomain.Get(), _cargoDomain.Get())));
 }