jasoet-gdp
10/12/2015, 3:02 AMreturn gradingRequestTry
.onFailure(throwable -> {
<http://logger.info|logger.info>(
"Exception when Save Question [" + throwable.getMessage() + "]",
throwable
);
})
.map(gradingRequest -> {
return new ResponseEntity<>(
new GradingControllerResult(gradingRequest.getId(), createdAt),
HttpStatus.OK
);
})
.orElse(new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR));