Esempio n. 1
0
        public int DeleteExistingOrder(int orderId)
        {
            int result = 0;

            try
            {
                var orderDetail = dataDetailAccess.GetOrderDetailListByOrderId(orderId);
                if (orderDetail.Count > 0)
                {
                    dataDetailAccess = new OrderDetailDataAccess();
                    dataDetailAccess.DeleteOrderDetailByOrderId(orderId);
                }

                result = orderDataAccess.DeleteExistingOrder(orderId);
            }
            catch (Exception ex)
            {
                //
            }

            return(result);
        }