Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects

fix flutter git

Closed David Johan Hasiholan Parhusip requested to merge feat/david-fitur-6-7-8 into main
135 files
+ 5096
114
Compare changes
  • Side-by-side
  • Inline
Files
135
@@ -31,7 +31,15 @@ public class AppointmentRestController {
throw new ResponseStatusException(
HttpStatus.BAD_REQUEST, "Request body has invalid type or missing field.");
} else {
return appointmentService.addAppointment(appointment);
AppointmentModel appointmentBaru = appointmentService.addAppointment(appointment);
if (appointmentBaru == null) {
throw new ResponseStatusException(
HttpStatus.BAD_REQUEST, "Create Failed");
}
else {
return appointmentBaru;
}
// return appointmentService.addAppointment(appointment);
}
}
@GetMapping(value = "/viewAll")
Loading