changeset 95:8b48dabb3582

No need to build the response here anymore as this is already done in the repository.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 11 Jun 2013 08:12:45 +0200
parents b84855915980
children 025c6e30be9e
files src/main/java/de/intevation/lada/rest/LProbeService.java
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/LProbeService.java	Tue Jun 11 08:12:13 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/LProbeService.java	Tue Jun 11 08:12:45 2013 +0200
@@ -112,11 +112,11 @@
     @Produces("text/json")
     @Consumes("application/json")
     public Response create(LProbe probe) {
-        boolean success = repository.create(probe);
-        int generalError = repository.getGeneralError();
-        Response response = new Response(success, generalError, probe);
-        response.setWarnings(repository.getWarnings());
-        response.setErrors(repository.getErrors());
-        return response;
+        return repository.create(probe);
+        //int generalError = repository.getGeneralError();
+        //Response response = new Response(success, generalError, probe);
+        //response.setWarnings(repository.getWarnings());
+        //response.setErrors(repository.getErrors());
+        //return response;
     }
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)