public ActionResult Erro404(string aspxerrorpath) { #region BreadCrumb var breadCrumb = new BreadCrumbETitulo { Titulo = "Página ou Recurso não encontrado", BreadCrumbs = new List<BreadCrumb> { new BreadCrumb {LinkText = "Home", ActionName = "Index", ControllerName = "Home"}, new BreadCrumb {LinkText = "Página ou Recurso não encontrado", ActionName = "Erro404", ControllerName = "Acesso"} } }; TempData["BreadCrumETitulo"] = breadCrumb; #endregion return View("Erro404"); }
public ActionResult Erro500() { #region BreadCrumb var breadCrumb = new BreadCrumbETitulo { Titulo = "Ocorreu um erro interno", BreadCrumbs = new List<BreadCrumb> { new BreadCrumb {LinkText = "Home", ActionName = "Index", ControllerName = "Home"}, new BreadCrumb {LinkText = "Erro", ActionName = "Erro500", ControllerName = "Acesso"} } }; TempData["BreadCrumETitulo"] = breadCrumb; #endregion return View("Erro500"); }
public ActionResult Filtrar(int status, string nome = "") { #region BreadCrumb var breadCrumb = new BreadCrumbETitulo { Titulo = "Grupo de Manutenção", BreadCrumbs = new List<BreadCrumb> { new BreadCrumb {LinkText = "Grupo de Manutenção", ActionName = "Index", ControllerName = "GrupoManutencao"}, new BreadCrumb {LinkText = "Filtro", ActionName = "Filtro", ControllerName = "GrupoManutencao"} } }; TempData["BreadCrumETitulo"] = breadCrumb; #endregion var listaPerfis = grupoManutencaoAppService.Filtrar(status, nome); return View("Index", listaPerfis); }
public ActionResult Filtrar(int status, string nome = "") { #region BreadCrumb var breadCrumb = new BreadCrumbETitulo { Titulo = "Usuário", BreadCrumbs = new List<BreadCrumb> { new BreadCrumb {LinkText = "Usuario", ActionName = "Index", ControllerName = "Usuario"}, new BreadCrumb {LinkText = "Filtro", ActionName = "Filtro", ControllerName = "Usuario"} } }; TempData["BreadCrumETitulo"] = breadCrumb; #endregion var listaUsuario = usuarioAppService.Filtrar(status, nome); ViewBag.Perfil = ObterListaPerfilParaCombo(); return View("Index", listaUsuario); }
public ActionResult NaoAutorizado() { #region BreadCrumb var breadCrumb = new BreadCrumbETitulo { Titulo = "Home", BreadCrumbs = new List<BreadCrumb> { new BreadCrumb {LinkText = "Home", ActionName = "Index", ControllerName = "Home"}, new BreadCrumb {LinkText = "Não Autorizado", ActionName = "NaoAutorizado", ControllerName = "Acesso"} } }; TempData["BreadCrumETitulo"] = breadCrumb; #endregion return View(); }
public ActionResult Index() { #region BreadCrumb var breadCrumb = new BreadCrumbETitulo { Titulo = "Usuário", BreadCrumbs = new List<BreadCrumb> { new BreadCrumb {LinkText = "Usuario", ActionName = "Index", ControllerName = "Usuario"}, new BreadCrumb {LinkText = "Lista", ActionName = "Index", ControllerName = "Usuario"} } }; TempData["BreadCrumETitulo"] = breadCrumb; #endregion var listaUsuario = usuarioAppService.ObterTodos(); ViewBag.Perfil = ObterListaPerfilParaCombo(); return View(listaUsuario); }
public ActionResult Index() { #region BreadCrumb var breadCrumb = new BreadCrumbETitulo { Titulo = "Grupo de Manutenção", BreadCrumbs = new List<BreadCrumb> { new BreadCrumb {LinkText = "Grupo de Manutenção", ActionName = "Index", ControllerName = "GrupoManutencao"}, new BreadCrumb {LinkText = "Lista", ActionName = "Index", ControllerName = "GrupoManutencao"} } }; TempData["BreadCrumETitulo"] = breadCrumb; #endregion var listaPerfis = grupoManutencaoAppService.ObterTodos(); return View(listaPerfis); }