Commit ce758498a1c1212e225b8f03ec80740329147574

Authored by Geoffrey PREUD'HOMME
1 parent 1a826ce9

Retourne quelque chose pour delete

src/main/java/etunicorn/controller/ConsommationController.java
@@ -80,7 +80,7 @@ public class ConsommationController extends BaseController implements etunicorn. @@ -80,7 +80,7 @@ public class ConsommationController extends BaseController implements etunicorn.
80 return generateError(HttpStatus.NOT_FOUND, "Consommation inconnue"); 80 return generateError(HttpStatus.NOT_FOUND, "Consommation inconnue");
81 } 81 }
82 consommationRepository.delete(consommation); 82 consommationRepository.delete(consommation);
83 - return null; 83 + return new ResponseEntity<Object>(HttpStatus.NO_CONTENT);
84 } 84 }
85 85
86 @Override 86 @Override
src/main/java/etunicorn/controller/EvenementController.java
@@ -92,7 +92,7 @@ public class EvenementController extends BaseController implements etunicorn.gen @@ -92,7 +92,7 @@ public class EvenementController extends BaseController implements etunicorn.gen
92 return generateError(HttpStatus.NOT_FOUND, "Évènement inconnu"); 92 return generateError(HttpStatus.NOT_FOUND, "Évènement inconnu");
93 } 93 }
94 evenementRepository.delete(evenement); 94 evenementRepository.delete(evenement);
95 - return null; 95 + return new ResponseEntity<Object>(HttpStatus.NO_CONTENT);
96 } 96 }
97 97
98 @Override 98 @Override