Beispiel #1
0
        public ActionResult VerChat()
        {
            string valor = "";
            bool   log   = Convert.ToBoolean(Session["LogOK"]);
            int    tipo  = Convert.ToInt32(Session["Tipo"]);

            if (log == true)
            {
                if (tipo == 4)
                {
                    string correo = Session["Correo"].ToString();
                    return(View(ChatDAO.MostarUsuarios(correo)));
                }
                else
                {
                    return(Redirect("/FrontEnd/Inicio"));
                }
            }
            else
            {
                valor = "/FrontEnd/Login";
                return(Redirect(valor));
            }
        }