public IActionResult Logout() { Example1Model.Logout(); this.X().Reload(); return(this.Direct()); }
public IActionResult Login(string role) { switch (role) { case "usr": Example1Model.SetUser(); break; case "adm": Example1Model.SetAdmin(); break; case "app": Example1Model.SetApprover(); break; default: Example1Model.Logout(); break; } this.X().Reload(); return(this.Direct()); }