[add] Validations for work day abstracted to their own method

This commit is contained in:
2018-08-15 01:40:36 -06:00
parent e3dfaf9f26
commit ca80abc389
2 changed files with 42 additions and 10 deletions

View File

@@ -102,7 +102,7 @@ $app->post('/api/employee/workday', function ($request, $response) {
return $response->withStatus(200)
->withHeader('Content-Type', 'application/json')
->write(json_encode($this->employeeApplication->SaveNewWorkDay($requestData)));
->write(json_encode($this->employeeApplication->newWorkedDay($requestData)));
});
$app->get('/api/employee/salary/{code}', function (Request $request, Response $response, array $args) {