コード例 #1
0
        public IActionResult AdminLogin(UserDetail ud)
        {
            UserMethod um    = new UserMethod();
            string     error = "";

            if (um.AdminLogIn(ud.User_UserName, ud.User_Password, out error) == true)
            {
                HttpContext.Session.SetString("AdminID", ud.User_UserName);
                return(View("Admin"));
            }
            ud.LogInErrorMessage = error;
            return(View("AdminLogin", ud));
        }