public Task <bool> Credit(int accountID, int amount)
        {
            var creditAccountTask = Task.Run(async() =>
            {
                return(await bankRepository.CreditAccount(accountID, amount));
            });
            var result = creditAccountTask.ContinueWith(async(t) =>
            {
                return(t.Result != null ? await couchbaseRepository.CreditAccount(accountID, t.Result) : false);
            }, TaskContinuationOptions.OnlyOnRanToCompletion);

            return(result.Result);
        }
 public Task <bool> Credit(int accountID, int amount)
 {
     return(bankRepository.CreditAccount(accountID, amount));
 }