// GET: meioPropagacaos public ActionResult Index(string pesquisa, int page = 0) { var meioPropagacaoViewModel = _meioPropagacaoAppService.ObterGrid(page, pesquisa); ViewBag.PaginaAtual = page; ViewBag.Busca = "&pesquisa=" + pesquisa; ViewBag.Controller = "meioPropagacaos"; ViewBag.TotalRegistros = _meioPropagacaoAppService.ObterTotalRegistros(pesquisa); return(View(meioPropagacaoViewModel)); }
// GET: meioPropagacaos public ActionResult Index(string pesquisa, int page = 0) { if (Session["usuario"] == null) { return(RedirectToAction("Login", "Usuarios")); } var meioPropagacaoViewModel = _meioPropagacaoAppService.ObterGrid(page, pesquisa); ViewBag.PaginaAtual = page; ViewBag.Busca = "&pesquisa=" + pesquisa; ViewBag.Controller = "meioPropagacaos"; ViewBag.TotalRegistros = _meioPropagacaoAppService.ObterTotalRegistros(pesquisa); return(View(meioPropagacaoViewModel)); }