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")); }