Méthodes fréquemment utilisées
Méthodes fréquemment utilisées
Méthodes fréquemment utilisées
Méthodes fréquemment utilisées
public async Task LockAsync(AccountId id, bool locked) { try { var acc = await _repo.GetAsync(id, true); var newAcc = new Account(acc.Id, acc.Balance, locked); await _repo.UpdateAsync(newAcc); } catch (AccountNotFoundException) { var info = new Dictionary <string, string>() { ["Id"] = id.ToString() }; throw new WPayException(AccountErrors.AccountNotExist, info); } }