internal bool SetDeliveryAddress(DeliveryLocation Address) { string Url = "https://order.pagliacci.com/Order/StepDelivery"; var values = new Dictionary <string, string> { { "fileBuilding", Address.ID }, { "forPickupField", "0" } }; var content = new FormUrlEncodedContent(values); var response = Client.PostAsync(Url, content).Result; var responseString = response.Content.ReadAsStringAsync().Result; Console.WriteLine("SetDeliveryAddress got resonse ==> {0}", responseString); // TODO return(true); }
/* * Will receive the default/last-used address as Address (which can be overriden by the user). */ internal Order(ApiClient Client, DeliveryLocation Address) { this.Client = Client; this.Address = Address; }