public async Task DeleteWallet(string walletId) { var wallet = await _walletRepository.GetAsync(Guid.Parse(walletId)); if (wallet == null) { throw new NotFoundException(Messages.Wallet_NotFound); } await _walletDetailService.DeleteWalletDetails(wallet); await _testResultService.DeleteTestResults(wallet.Id); _walletRepository.Delete(wallet); await _walletRepository.SaveAsync(); return; }