Added functionality to the Attendance controller.
Modify POST method in controllers to return HTTP errors codes.