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()); } }
public void SetDetails(clsOrderDetails prOrders) { _Orders = prOrders; updateForm(); ShowDialog(); }
public static void Run(clsOrderDetails prOrders) { Instance.SetDetails(prOrders); }
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")); }