예제 #1
0
        public async Task <ActionResult> Logout(vm.Footer info)
        {
            if (!(!User.IsInRole("Anonymous")))
            {
                return(new UnauthorizedResult());
            }
            await OAuth.Instance.LogOff();

            return(Redirect(Url.Index("Login")));
        }
예제 #2
0
        public async Task <IViewComponentResult> InvokeAsync(vm.Footer info)
        {
            info = info ?? new vm.Footer();

            return(View(info));
        }