private void hacerPedido() { Order or = new Order(); or.ProductID = int.Parse(pro.ProductID); or.Quantity = Convert.ToInt32(Cant.Text); or.Date = DateTime.Today; ListaPedido.Add(or); //Order or = new Order(); //or.ProductID = int.Parse(pro.ProductID); //or.Quantity = Convert.ToInt32(Cant.Text); //or.Date = DateTime.Today; //bool sw = await OrdersServices.TryCreateOrder(or); //if (sw) //{ // MessageBox.Show("Se ha añadido a la orden"); //} //else //{ // MessageBox.Show("Se ha producido un error"); //} }
public static async Task<bool> TryCreateOrder(Order newOrder) { return true; }