コード例 #1
0
        public ViewResult Login(LoginViewModel model)
        {
            Account account = db.GetAccount(model.Email, model.Password);

            if (account != null)
            {
                User("Hi " + account.Name);
            }
            else
            {
                User("Invalid Login Credentials");
            }
            return(View("User"));
        }