コード例 #1
0
        public async Task <IActionResult> OnPostDeleteAsync(int[] ids)
        {
            foreach (var id in ids)
            {
                var mpAccount = await _mpAccountService.GetObjectAsync(z => z.Id == id);

                if (mpAccount != null)
                {
                    await _mpAccountService.DeleteObjectAsync(mpAccount);

                    await AccessTokenContainer.RemoveFromCacheAsync(mpAccount.AppId);//Çå³ý×¢²á״̬
                }
            }
            return(RedirectToPage("./Index", new { Uid }));
        }