Exemple #1
0
        public IActionResult Logout()
        {
            Example1Model.Logout();
            this.X().Reload();

            return(this.Direct());
        }
Exemple #2
0
        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());
        }