// GET: Alertas public ActionResult Index() { if (!this.currentUser()) { return(RedirectToAction("Ingresar", "Login")); } //return View(dal.GetAlertas()); Usuarios user = getCurrentUser(); if (esAdministrador()) { return(View(dal.GetAlertas())); } else { return(View(dal.GetAlertasByUserId(user.id_Usuario))); } }