public OverpaymentAllocation Add(OverpaymentAllocation allocation) { var endpoint = string.Format("/api.xro/2.0/Overpayments/{0}/Allocations", allocation.Overpayment.Id); return((OverpaymentAllocation)Add(allocation, endpoint)); }
public async Task <OverpaymentAllocation> AddAsync(OverpaymentAllocation allocation) { var endpoint = string.Format("/api.xro/2.0/Overpayments/{0}/Allocations", allocation.Overpayment.Id); return(await AddAsync(allocation, endpoint).ConfigureAwait(false) as OverpaymentAllocation); }
public async Task <OverpaymentAllocation> AddAsync(OverpaymentAllocation allocation) { var endpoint = $"{_endpointBase}/Overpayments/{allocation.Overpayment.Id}/Allocations"; return(await AddAsync(allocation, endpoint).ConfigureAwait(false) as OverpaymentAllocation); }