public async Task <bool> Post(User value) { User user = await _apiWorker.PostAsync(value); if (user == null) { return(false); } bool result = await _databaseWorker.PostAsync(user); return(result); }
public async Task <bool> Post(Payment value) { Payment payment = await _apiWorker.PostAsync(value); if (payment == null) { return(false); } bool result = await _databaseWorker.PostAsync(payment); return(result); }