internal async static Task <string> DeleteOrderAsync(clsAllOrders prOrder) { using (HttpClient lcHttpClient = new HttpClient()) { HttpResponseMessage lcRespMessage = await lcHttpClient.DeleteAsync ($"http://localhost:60065/api/Data/DeleteOrder?OrderID={prOrder.OrderID}"); return(await lcRespMessage.Content.ReadAsStringAsync()); } }
internal async static Task <string> InsertOrderAsync(clsAllOrders prOrder) { return(await InsertOrUpdateAsync(prOrder, "http://localhost:60065/api/Data/PostOrder", "POST")); }