small changes

This commit is contained in:
Jottyfan
2022-10-09 09:55:12 +02:00
parent 92cb571ca3
commit 3b33368374
4 changed files with 12 additions and 9 deletions

View File

@@ -38,6 +38,7 @@ public class BookingsController {
String username = indexService.getCurrentUser(request);
model.addAttribute("currentUser", username);
model.addAttribute("bookers", bookingsService.getBookers(username));
model.addAttribute("addBean", new AddPaymentBean());
return "business/bookings";
}
@@ -57,6 +58,6 @@ public class BookingsController {
public String addBooking(Model model, @ModelAttribute AddPaymentBean bean, @PathVariable Integer id) {
Double payment = bean.getPayment();
bookingsService.addPayment(id, payment);
return getBooking(model, id);
return getBookings(model);
}
}