public async Task DeleteRecurringPayment(int id) { var payments = await savePaymentDbAccess.GetPaymentsForRecurring(id); payments.ForEach(x => x.RemoveRecurringPayment()); await savePaymentDbAccess.DeleteRecurringPayment(id); }
public async Task DeleteRecurringPayment(int id) { await savePaymentDbAccess.DeleteRecurringPayment(id) .ConfigureAwait(false); }