コード例 #1
0
        public IActionResult DeleteWallet(int id)
        {
            int regId;

            regId = _walletService.DeleteRegistrant(id);
            if (regId == -1)
            {
                return(View("Error", new ErrorViewModel {
                    RequestId = @"Can't delete wallet with accounts"
                }));
            }

            return(RedirectToAction("DetailsRegistrant", "Registrant", new { id = regId }));
        }