public async Task <ActionResult> Logout(vm.Footer info) { if (!(!User.IsInRole("Anonymous"))) { return(new UnauthorizedResult()); } await OAuth.Instance.LogOff(); return(Redirect(Url.Index("Login"))); }
public async Task <IViewComponentResult> InvokeAsync(vm.Footer info) { info = info ?? new vm.Footer(); return(View(info)); }