using JCSoft.WX.Framework.Api; using Microsoft.Extensions.Caching.Memory; using Microsoft.AspNetCore.Authentication; namespace SupplierWeb.Pages { public class LogoutModel : LoginedPageModel { public LogoutModel(IMemoryCache cache, IApiClient client) : base(cache, client) { } public override int Index => -1; public override int SubIndex => -1; public void OnGet() { HttpContext?.SignOutAsync(); Response.Redirect("/login"); } } }