public IActionResult Login(HttpSession session, HttpResponse responce) { if (AuthenticationManager.IsAuthenticated(session.Id)) { return(null); } return(this.View()); }
public void Logout(HttpResponse response, HttpSession session) { AuthenticationManager.Logout(response, session.Id); this.Redirect(response, "/home/index"); }