public Task<MailChimpServiceResponse> OrderAddAsync(Order order) { var url = Urls.ECommerce + "/order-add.json"; var request = new { order = order }; return Execute(url, request).ContinueWith(t => { // add an extra level of validation if (t.Result.IsSuccesful) t.Result.IsSuccesful = t.Result.Json["complete"] .ToObject<bool>(); return t.Result; }); }
public MailChimpServiceResponse OrderAdd(Order order) { return WaitForServiceResponse(OrderAddAsync(order)); }