private void PlaceOrder() { var customer = new Customer(); //populate the customer instance var order = new Order(); // populate the order instance var allowSplitOrders = true; var emailReciepts = true; try { var payment = new Payment(); var orderController = new OrderController(); orderController.PlaceOrder(customer, order, payment, allowSplitOrders, emailReciepts); } catch (ArgumentNullException ex) { // Log } }