internal async static Task <string> DeleteOrderAsync(clsOrderDetails prOrder)
        {
            using (HttpClient lcHttpClient = new HttpClient())
            {
                HttpResponseMessage lcRespMessage = await lcHttpClient.DeleteAsync
                                                        ($"http://localhost:60064/api/inventory/DeleteOrder?OrderID={prOrder.OrderID}");

                return(await lcRespMessage.Content.ReadAsStringAsync());
            }
        }
Example #2
0
 public void SetDetails(clsOrderDetails prOrders)
 {
     _Orders = prOrders;
     updateForm();
     ShowDialog();
 }
Example #3
0
 public static void Run(clsOrderDetails prOrders)
 {
     Instance.SetDetails(prOrders);
 }
Example #4
0
 public static void DispatchWorkForm(clsOrderDetails prOrders)
 {
     // _OrdersList[Convert.ToString(prOrders.ProductID)].DynamicInvoke(prOrders);
 }
 internal async static Task <string> UpdateOrderAsync(clsOrderDetails _Order)
 {
     return(await InsertOrUpdateAsync(_Order, "http://localhost:60064/api/inventory/PutOrder", "PUT"));
 }