示例#1
0
        public CreditNoteAllocation Add(CreditNoteAllocation allocation)
        {
            var endpoint = string.Format("/api.xro/2.0/CreditNotes/{0}/Allocations", allocation.CreditNote.Id);

            return((CreditNoteAllocation)Add(allocation, endpoint));
        }
示例#2
0
        public async Task <CreditNoteAllocation> AddAsync(CreditNoteAllocation allocation)
        {
            var endpoint = $"{_endpointBase}/CreditNotes/{allocation.CreditNote.Id}/Allocations";

            return(await AddAsync(allocation, endpoint).ConfigureAwait(false) as CreditNoteAllocation);
        }