Esempio n. 1
0
        // GET: User
        public ActionResult Index()
        {
            string user = "******";
            bool   ok   = UserBll.Auth(ref user);

            if (string.IsNullOrWhiteSpace(user))
            {
                user = "******";
            }
            ViewBag.ok = ok;
            ViewBag.ru = "";
            ViewBag.u  = new HtmlString(user);
            if (ok)
            {
                string ru = Request.QueryString["ru"];
                if (!string.IsNullOrWhiteSpace(ru))
                {
                    ViewBag.ru = new HtmlString(ru);
                }
            }
            return(View());
        }