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