Created
September 4, 2019 21:45
-
-
Save parzibyte/95f31377f8143888b5318238c326c6be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void limpiarCarrito(HttpServletRequest request) { | |
this.guardarCarrito(new ArrayList<>(), request); | |
} | |
@GetMapping(value = "/limpiar") | |
public String cancelarVenta(HttpServletRequest request, RedirectAttributes redirectAttrs) { | |
this.limpiarCarrito(request); | |
redirectAttrs | |
.addFlashAttribute("mensaje", "Venta cancelada") | |
.addFlashAttribute("clase", "info"); | |
return "redirect:/vender/"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment