常用方法
常用方法
常用方法
常用方法
public async Task <WalletHandler> CreateNewWallet(bool makeDefault = false) { var walletHandler = walletService.CreateNew("Default"); await walletService.SaveWallet(walletHandler); if (makeDefault) { var setting = await settingService.GetSetting(); setting.CurrentWalletId = walletHandler.Id; await settingService.SaveSetting(setting); } return(walletHandler); }