/******************************************************************** LISTA INGREDIENTES RETIRADOS ********************************************************************/ public ActionResult ListarRetirados() { if (Session["UsuarioLogado"] == null) { return(RedirectToAction("Index", "Login")); } else if (Session["NivelAcesso"].Equals(2) || Session["NivelAcesso"].Equals(3) || Session["NivelAcesso"].Equals(4)) { if (!Request.HttpMethod.Equals("POST")) { ViewBag.ListaRetirados = I.ListaIngredientesRetirados(); } } else { return(RedirectToAction("Home", "Home")); } ViewBag.Imagens = Usuario.ListarImagem(Session["NIF"]); return(View()); }