コード例 #1
0
        public IActionResult Login(LoginData a)
        {
            DatabaseCon z = new DatabaseCon();
            LoginData   b = z.getUser(a.email, a.password);

            if (b == null)
            {
                ViewBag.Message = "error wrong username/or passwrod";
                return(View("~/Views/Login/Login.cshtml"));
            }
            ViewBag.Message = b.name;
            return(View("~/Views/Home/index.cshtml"));
        }