示例#1
0
        public IActionResult Index()
        {
            List <Test> model   = BALUser.GetTestList(_configuration["DomainName"].ToSafeString());
            string      message = string.Empty;

            if (TempData["message"] != null)
            {
                message         = TempData["message"].ToSafeString();
                ViewBag.Message = message;

                if (TempData["IsSuccess"].ToSafeInt() == 0)
                {
                    ViewBag.IsError = 1;
                }
                else
                {
                    ViewBag.IsForgotPwdSucc = 1;
                }
            }
            return(View(model));
        }