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