/**
  * Actualizar un elemento
  *
  * @param id
  * @param tipo
  * @return
  */
 @RequestMapping(
     method = RequestMethod.PUT,
     value = "/data/tipos/{id}",
     produces = MediaType.APPLICATION_JSON_VALUE,
     consumes = MediaType.APPLICATION_JSON_VALUE)
 public ReturnAdapter update(@PathVariable("id") Integer id, @RequestBody Tipo tipo) {
   ReturnAdapter result = new ReturnAdapter();
   try {
     result = tipoService.updateTipo(id, tipo);
   } catch (Exception e) {
     result = StandardResponse.getResponseInExceptionInt(e, log);
   }
   return result;
 }