small changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user