Esempio n. 1
0
        private async void CancelOrderBtn_Click(object sender, EventArgs e)
        {
            // Set order to cancelled
            order.Canceled = true;
            order.Paid     = false;

            // Update orderstatus in database
            await _repo.UpdateOrderStatusAsync(order);

            // Return to entry form
            ReturnToEntryForm();
        }