Exemple #1
0
        public bool PlaceOrder(Order order, int customerId)
        {
            Customer customer = customerActions.GetCustomerFromId(customerId);
            bool     updated  = UpdateOrder(order, customer);

            if (updated)
            {
                orderActions.SaveOrder(order, customerId);
            }

            return(updated);
        }