controller refactor : AppointmentsController.php
ASOC to OBJ