Exemple #1
0
 public async Task <Account> GetAsync(AccountId id)
 {
     try
     {
         return(await _repo.GetAsync(id));
     }
     catch (AccountNotFoundException)
     {
         var info = new Dictionary <string, string>()
         {
             ["Id"] = id.ToString()
         };
         throw new WPayException(AccountErrors.AccountNotExist, info);
     }
 }