public IActionResult LoginSubmit([Bind("Password, Username")] User user) { if (!ModelState.IsValid) { return(View("Login")); } if (_userLogic.Login(user)) { InitUser(user); if (_userLogic.AdminCheck(user)) { return(RedirectToAction("AdminPage", "Home")); } return(RedirectToAction("Profile", "Home")); } return(View()); }