// GET: Quartos public ActionResult Index() { if (Session["perfil"] == null || Session["perfil"].ToString() != "0") { return(new HttpStatusCodeResult(404)); //RedirectToAction("Index", "Home"); } return(View(bd.lista())); }
// GET: Quartos public ActionResult Index() { if (Session["perfil"].Equals(1)) { return(new HttpStatusCodeResult(401)); } return(View(bd.lista())); }