Пример #1
0
        public override async Task <HttpResponseMessage> Post <T>(T data)
        {
            var invoices = new InvoicesDTO();

            if (!InvoicesDTO.ReferenceEquals(data.GetType(), invoices))
            {
                return(null);
            }
            invoices = (InvoicesDTO)nameof(data).Clone();
            return(await PushInvoices(invoices));
        }
 public Task <HttpResponseMessage> PushInvoices(InvoicesDTO invoices)
 {
     return(Task.FromResult(new HttpResponseMessage(HttpStatusCode.OK)));
 }
Пример #3
0
 public async Task <HttpResponseMessage> PushInvoices(InvoicesDTO invoices)
 {
     return(await GetClient().PostAsJsonAsync("api/invoices/", invoices));
 }