public async Task <IActionResult> Delete(OrderDetails orderDetails)
        {
            var result = await _orderDetailsService.Delete(orderDetails);

            if (result.Success)
            {
                return(Ok(result));
            }

            return(BadRequest(result));
        }
Example #2
0
        //Hard DELETE
        private void btn_clear_click(object sender, RoutedEventArgs e)
        {
            wrp_categories.Children.Clear();
            wrp_products.Children.Clear();
            lbl_customer.Content = "";

            foreach (var button in grd_menuButtons.Children.OfType <Button>())
            {
                button.Background = (Brush)bc.ConvertFrom("#FF314C62");
            }



            p = null;
            _ods.Delete(order.Id);
            _os.Delete(order.Id);
            lst_Order.Items.Clear();
        }