Put order processing code in the controller