Index: src/main/java/com/example/rezevirajmasa/demo/bootstrap/DataInitialization.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/bootstrap/DataInitialization.java	(revision 8ca35dc93473fb5be3777778a84fedee941c8790)
+++ 	(revision )
@@ -1,108 +1,0 @@
-//package com.example.rezevirajmasa.demo.bootstrap;
-//
-//import com.example.rezevirajmasa.demo.model.Reservation;
-//import com.example.rezevirajmasa.demo.model.Restaurant;
-//import com.example.rezevirajmasa.demo.model.TableEntity;
-//import com.example.rezevirajmasa.demo.service.ReservationService;
-//import com.example.rezevirajmasa.demo.service.RestaurantService;
-//import com.example.rezevirajmasa.demo.service.TableService;
-//import jakarta.annotation.PostConstruct;
-//import org.springframework.beans.factory.annotation.Autowired;
-//import org.springframework.boot.ApplicationArguments;
-//import org.springframework.stereotype.Component;
-//
-//import java.time.LocalDate;
-//import java.time.LocalDateTime;
-//import java.time.LocalTime;
-//import java.time.format.DateTimeFormatter;
-//import java.util.ArrayList;
-//import java.util.List;
-//
-//@Component
-//public class DataInitialization {
-//    private final RestaurantService restaurantService;
-//    private final TableService tableService;
-//    private final ReservationService reservationService;
-//
-//    public DataInitialization(RestaurantService restaurantService, TableService tableService, ReservationService reservationService) {
-//        this.restaurantService = restaurantService;
-//        this.tableService = tableService;
-//        this.reservationService = reservationService;
-//    }
-//
-////    @PostConstruct
-//    public void initData() {
-//        for(Restaurant restaurant : restaurantService.listall()) {
-//            extendTimeSlotsIndefinitely(restaurant);
-//        }
-//    }
-//
-//    private void extendTimeSlotsIndefinitely(Restaurant restaurant) {
-//        while (true) {
-//            String[] hours = restaurant.getOperatingHours().split("-");
-//            LocalTime startTime = LocalTime.parse(hours[0], DateTimeFormatter.ofPattern("HH:mm"));
-//            LocalTime endTime = LocalTime.parse(hours[1], DateTimeFormatter.ofPattern("HH:mm"));
-//
-//            // Get the current date and time
-//            LocalDateTime currentDateTime = LocalDateTime.now().with(startTime);
-//
-//            // Calculate the end date (current date + 3 days)
-//            LocalDateTime endDate = LocalDateTime.now().with(endTime).plusDays(3);
-//
-//            List<TableEntity> tables = restaurant.getTablesList();
-//            for (TableEntity table : tables) {
-//                List<LocalDateTime> existingTimeSlots = table.getTimeSlots();
-//                List<Reservation> existingReservations = reservationService.findReservationsByTableAndDateRange(table, currentDateTime, endDate);
-//                List<LocalDateTime> newTimeSlots = generateTimeSlots(currentDateTime, endDate, existingReservations, existingTimeSlots, startTime, endTime);
-//                existingTimeSlots.addAll(newTimeSlots);
-//                tableService.saveTable(table);
-//            }
-//
-//            // Sleep for a period before generating time slots again
-//            try {
-//                // Sleep for 24 hours
-//                Thread.sleep(24 * 60 * 60 * 1000);
-//            } catch (InterruptedException e) {
-//                // Handle interrupted exception
-//                break;
-//            }
-//        }
-//    }
-//
-//    private List<LocalDateTime> generateTimeSlots(LocalDateTime startDate, LocalDateTime endDate, List<Reservation> existingReservations, List<LocalDateTime> existingTimeSlots, LocalTime startTime, LocalTime endTime) {
-//        List<LocalDateTime> timeSlots = new ArrayList<>();
-//        LocalDateTime currentDateTime = startDate;
-//        LocalTime currentTime = startTime;
-//        LocalDate currentDate = LocalDate.now(); // Get the current date
-//
-//        // Generate time slots until the end date
-//        while (currentDateTime.isBefore(endDate)) {
-//            // Ensure the current date is within the restaurant's opening hours
-//            if (currentDateTime.toLocalTime().isBefore(startTime)) {
-//                currentDateTime = currentDateTime.plusDays(1).with(startTime); // Move to the next day and set the start time
-//                continue; // Skip generating time slots for this day
-//            }
-//
-//            final LocalDateTime currentTimeSlotStart = currentDateTime; // Declare a final local variable
-//
-//            // Check if the current time slot overlaps with existing reservations
-//            boolean overlapsReservations = existingReservations.stream()
-//                    .anyMatch(reservation -> isOverlapping(currentTimeSlotStart, currentTimeSlotStart.plusMinutes(15), reservation.getCheckInTime(), reservation.getCheckOutTime()));
-//            boolean overlapsExistingTimeSlots = existingTimeSlots.stream()
-//                    .anyMatch(existingSlot -> isOverlapping(currentTimeSlotStart, currentTimeSlotStart.plusMinutes(15), existingSlot, existingSlot.plusMinutes(15)));
-//
-//            if (!overlapsReservations && !overlapsExistingTimeSlots) {
-//                timeSlots.add(currentDateTime);
-//            }
-//
-//            // Move to the next time slot (add 15 minutes
-//            currentDateTime = currentDateTime.plusMinutes(15);
-//        }
-//
-//        return timeSlots;
-//    }
-//
-//    private boolean isOverlapping(LocalDateTime start1, LocalDateTime end1, LocalDateTime start2, LocalDateTime end2) {
-//        return start1.isBefore(end2) && start2.isBefore(end1);
-//    }
-//}
Index: src/main/java/com/example/rezevirajmasa/demo/bootstrap/ReservationInitializer.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/bootstrap/ReservationInitializer.java	(revision 8ca35dc93473fb5be3777778a84fedee941c8790)
+++ 	(revision )
@@ -1,48 +1,0 @@
-//package com.example.rezevirajmasa.demo.bootstrap;
-//
-//import com.example.rezevirajmasa.demo.model.Reservation;
-//import com.example.rezevirajmasa.demo.model.Restaurant;
-//import com.example.rezevirajmasa.demo.service.ReservationHistoryService;
-//import com.example.rezevirajmasa.demo.service.ReservationService;
-//import org.springframework.stereotype.Component;
-//
-//import jakarta.annotation.PostConstruct;
-//import java.time.LocalDateTime;
-//import java.util.List;
-//import java.util.stream.Collectors;
-//
-//@Component
-//public class ReservationInitializer {
-//    private final ReservationHistoryService reservationHistoryService;
-//    private final ReservationService reservationService;
-//
-//    public ReservationInitializer(ReservationHistoryService reservationHistoryService, ReservationService reservationService) {
-//        this.reservationHistoryService = reservationHistoryService;
-//        this.reservationService = reservationService;
-//    }
-//
-//    @PostConstruct
-//    public void initializePastReservations() {
-//        LocalDateTime currentTime = LocalDateTime.now();
-//        List<Reservation> reservationsToMove = reservationService.findReservationsToMove(currentTime);
-//
-//        List<Restaurant.ReservationHistory> reservationHistories = reservationsToMove.stream()
-//                .map(reservation -> new Restaurant.ReservationHistory(
-//                        reservation.getUser(),
-//                        reservation.getTable(),
-//                        reservation.getRestaurant(),
-//                        reservation.getReservationDateTime(),
-//                        reservation.getPartySize(),
-//                        reservation.getSpecialRequests(),
-//                        "Done",
-//                        null,
-//                        reservation.getCheckInTime()
-//                ))
-//                .collect(Collectors.toList());
-//
-//        reservationHistoryService.moveReservationsToPast(reservationHistories);
-//
-//        reservationsToMove.forEach(reservation -> reservationService.deleteReservation(reservation.getReservationID()));
-//    }
-//
-//}
Index: src/main/java/com/example/rezevirajmasa/demo/bootstrap/TimeSlotManagementService.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/bootstrap/TimeSlotManagementService.java	(revision 8ca35dc93473fb5be3777778a84fedee941c8790)
+++ 	(revision )
@@ -1,103 +1,0 @@
-package com.example.rezevirajmasa.demo.bootstrap;
-
-import com.example.rezevirajmasa.demo.model.Reservation;
-import com.example.rezevirajmasa.demo.model.Restaurant;
-import com.example.rezevirajmasa.demo.model.TableEntity;
-import com.example.rezevirajmasa.demo.repository.ReservationRepository;
-import com.example.rezevirajmasa.demo.repository.TableRepository;
-import jakarta.annotation.PostConstruct;
-import jakarta.annotation.PreDestroy;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.cglib.core.Local;
-import org.springframework.stereotype.Component;
-
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.time.LocalTime;
-import java.time.format.DateTimeFormatter;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-import java.util.stream.Collectors;
-
-@Component
-public class TimeSlotManagementService  {
-    @Autowired
-    private TableRepository tableRepository;
-    @Autowired
-    private ReservationRepository reservationRepository;
-
-    @PostConstruct
-    public void initializeTimeSlots() {
-        LocalDate startDate = LocalDate.now();
-        initializeTimeSlotsForNextDays(startDate);
-    }
-
-    private void initializeTimeSlotsForNextDays(LocalDate startDate) {
-        LocalDate currentDate = startDate;
-        for (int i = 0; i < 3; i++) {
-            Iterable<TableEntity> tableEntities = tableRepository.findAll();
-            for (TableEntity tableEntity : tableEntities) {
-                initializeTimeSlotsForTable(tableEntity, currentDate);
-                tableRepository.save(tableEntity);
-            }
-            currentDate = currentDate.plusDays(1);
-        }
-    }
-
-    private void initializeTimeSlotsForTable(TableEntity tableEntity, LocalDate date) {
-        // Get existing time slots for the table
-        List<LocalDateTime> existingTimeSlots = tableEntity.getTimeSlots().stream()
-                .filter(slot -> slot.toLocalDate().isEqual(date)) // Filter time slots for the specified date
-                .toList();
-
-        // If existing time slots are not null and not empty, return without initializing new ones
-        if (!existingTimeSlots.isEmpty()) {
-            return;
-        }
-
-        Restaurant restaurant = tableEntity.getRestaurant();
-        String[] hours = restaurant.getOperatingHours().split("-");
-        LocalTime startTime = LocalTime.parse(hours[0], DateTimeFormatter.ofPattern("HH:mm"));
-        LocalTime endTime = LocalTime.parse(hours[1], DateTimeFormatter.ofPattern("HH:mm"));
-
-        List<LocalDateTime> reservationCheckIns = getReservationCheckInsAfterNow(date);
-
-        tableEntity.initializeTimeSlots(startTime, endTime, Collections.singletonList(date), reservationCheckIns);
-    }
-
-    private List<LocalDateTime> getReservationCheckInsAfterNow(LocalDate date) {
-        LocalDateTime currentTime = LocalDateTime.now();
-        List<Reservation> reservations = reservationRepository.findByCheckInTimeAfterAndCheckInTimeBefore(
-                LocalDateTime.of(date, LocalTime.MIN), LocalDateTime.of(date, LocalTime.MAX));
-        List<LocalDateTime> checkIns = new ArrayList<>();
-        for (Reservation reservation : reservations) {
-            if (reservation.getCheckInTime().isAfter(currentTime)) {
-                checkIns.add(reservation.getCheckInTime());
-            }
-        }
-        return checkIns;
-    }
-
-    @PreDestroy
-    public void cleanUpTimeSlots() {
-        // Define the cutoff date (yesterday)
-        LocalDate cutoffDate = LocalDate.now().minusDays(1);
-
-        // Iterate through all tables and remove unused time slots older than the cutoff date
-        Iterable<TableEntity> tableEntities = tableRepository.findAll();
-        for (TableEntity tableEntity : tableEntities) {
-            // Remove unused time slots older than the cutoff date
-            removeUnusedTimeSlots(tableEntity, cutoffDate);
-            tableRepository.save(tableEntity);
-        }
-    }
-
-    private void removeUnusedTimeSlots(TableEntity tableEntity, LocalDate cutoffDate) {
-        // Get all time slots for the table
-        List<LocalDateTime> timeSlots = tableEntity.getTimeSlots();
-
-        // Remove unused time slots older than the cutoff date
-        timeSlots.removeIf(timeSlot -> timeSlot.toLocalDate().isBefore(cutoffDate));
-    }
-}
Index: src/main/java/com/example/rezevirajmasa/demo/component/ReservationScheduler.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/component/ReservationScheduler.java	(revision f5b256e5542dc70faf511ecc16ef87cc3d52cce5)
+++ src/main/java/com/example/rezevirajmasa/demo/component/ReservationScheduler.java	(revision f5b256e5542dc70faf511ecc16ef87cc3d52cce5)
@@ -0,0 +1,2 @@
+package com.example.rezevirajmasa.demo.component;public class ReservationScheduler {
+}
Index: src/main/java/com/example/rezevirajmasa/demo/config/ModelMapperConfig.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/config/ModelMapperConfig.java	(revision f5b256e5542dc70faf511ecc16ef87cc3d52cce5)
+++ src/main/java/com/example/rezevirajmasa/demo/config/ModelMapperConfig.java	(revision f5b256e5542dc70faf511ecc16ef87cc3d52cce5)
@@ -0,0 +1,2 @@
+package com.example.rezevirajmasa.demo.config;public class ModelMapperConfig {
+}
Index: src/main/java/com/example/rezevirajmasa/demo/dto/ReservationDTO.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/dto/ReservationDTO.java	(revision f5b256e5542dc70faf511ecc16ef87cc3d52cce5)
+++ src/main/java/com/example/rezevirajmasa/demo/dto/ReservationDTO.java	(revision f5b256e5542dc70faf511ecc16ef87cc3d52cce5)
@@ -0,0 +1,2 @@
+package com.example.rezevirajmasa.demo.dto;public class ReservationDTO {
+}
Index: src/main/java/com/example/rezevirajmasa/demo/dto/RestaurantDTO.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/dto/RestaurantDTO.java	(revision f5b256e5542dc70faf511ecc16ef87cc3d52cce5)
+++ src/main/java/com/example/rezevirajmasa/demo/dto/RestaurantDTO.java	(revision f5b256e5542dc70faf511ecc16ef87cc3d52cce5)
@@ -0,0 +1,2 @@
+package com.example.rezevirajmasa.demo.dto;public class RestaurantDTO {
+}
Index: src/main/java/com/example/rezevirajmasa/demo/dto/TableDTO.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/dto/TableDTO.java	(revision f5b256e5542dc70faf511ecc16ef87cc3d52cce5)
+++ src/main/java/com/example/rezevirajmasa/demo/dto/TableDTO.java	(revision f5b256e5542dc70faf511ecc16ef87cc3d52cce5)
@@ -0,0 +1,2 @@
+package com.example.rezevirajmasa.demo.dto;public class TableDTO {
+}
Index: src/main/java/com/example/rezevirajmasa/demo/model/RestaurantMenu.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/model/RestaurantMenu.java	(revision 8ca35dc93473fb5be3777778a84fedee941c8790)
+++ 	(revision )
@@ -1,40 +1,0 @@
-package com.example.rezevirajmasa.demo.model;
-
-import jakarta.persistence.*;
-
-import java.io.Serializable;
-
-@Entity
-@Table(name = "restaurantMenus")
-public class RestaurantMenu {
-    @EmbeddedId
-    private RestaurantMenuId id;
-
-    @ManyToOne
-    @MapsId("restaurantID")
-    @JoinColumn(name = "RestaurantID", nullable = false)
-    private Restaurant restaurant;
-
-    @ManyToOne
-    @MapsId("menuID")
-    @JoinColumn(name = "MenuID", nullable = false)
-    private Menu menu;
-
-    public RestaurantMenu(Restaurant restaurant, Menu menu) {
-        this.restaurant = restaurant;
-        this.menu = menu;
-    }
-
-    public RestaurantMenu() {
-    }
-
-    @Embeddable
-    public static class RestaurantMenuId implements Serializable {
-
-        @Column(name = "RestaurantID")
-        private Long restaurantID;
-
-        @Column(name = "MenuID")
-        private Long menuID;
-    }
-}
Index: src/main/java/com/example/rezevirajmasa/demo/web/controller/ReservationController.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/web/controller/ReservationController.java	(revision 8ca35dc93473fb5be3777778a84fedee941c8790)
+++ 	(revision )
@@ -1,107 +1,0 @@
-package com.example.rezevirajmasa.demo.web.controller;
-
-import com.example.rezevirajmasa.demo.dto.SignUpDto;
-import com.example.rezevirajmasa.demo.dto.UserDto;
-import com.example.rezevirajmasa.demo.mappers.UserMapper;
-import com.example.rezevirajmasa.demo.model.*;
-import com.example.rezevirajmasa.demo.model.exceptions.ExpiredReservationException;
-import com.example.rezevirajmasa.demo.service.*;
-import org.springframework.format.annotation.DateTimeFormat;
-import org.springframework.security.core.Authentication;
-import org.springframework.stereotype.Controller;
-import org.springframework.transaction.annotation.RestrictedTransactionalEventListenerFactory;
-import org.springframework.ui.Model;
-import org.springframework.web.bind.annotation.*;
-
-import java.time.LocalDateTime;
-import java.time.LocalTime;
-import java.util.List;
-import java.util.stream.Collectors;
-
-@Controller
-public class ReservationController {
-    private final ReservationService reservationService;
-    private final UserService userService;
-    private final TableService tableService;
-    private final ReservationHistoryService reservationHistoryService;
-
-    private final UserMapper userMapper;
-
-    public ReservationController(ReservationService reservationService, UserService userService, TableService tableService, ReservationHistoryService reservationHistoryService, UserMapper userMapper) {
-        this.reservationService = reservationService;
-        this.userService = userService;
-        this.tableService = tableService;
-        this.reservationHistoryService = reservationHistoryService;
-        this.userMapper = userMapper;
-    }
-
-    @GetMapping("/reservations")
-    public String showReservations(Model model, Authentication authentication) {
-        UserDto userDto = userService.findByEmail(authentication.getName());
-
-        SignUpDto signUpDto = userMapper.toSignUpDto(userDto);
-
-        User user = userMapper.signUpToUser(signUpDto);
-
-        List<Reservation> reservationList = reservationService.findReservationByUser(user);
-
-        model.addAttribute("bodyContent", "reservationList");
-        model.addAttribute("reservations", reservationList);
-        return "index";
-    }
-
-
-    @GetMapping("/reservations/edit/{reservationId}")
-    public String showEditReservation(@PathVariable Long reservationId, Model model) {
-        Reservation reservation = reservationService.findById(reservationId);
-        tableService.canceledTimeSlots(reservation.getTable().getId(), reservation.getCheckInTime());
-        model.addAttribute("reservation", reservation);
-        model.addAttribute("bodyContent", "reservationsEditForm");
-        return "index";
-    }
-
-    @PostMapping("/restaurants/{tableNumber}")
-    public String saveReservation(@PathVariable Long tableNumber,
-                                  @RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime reservationDateTime,
-                                  @RequestParam int partySize,
-                                  @RequestParam String specialRequests,
-                                  Authentication authentication){
-        TableEntity table = tableService.findById(tableNumber);
-        Restaurant restaurant = table.getRestaurant();
-
-        UserDto userDto = userService.findByEmail(authentication.getName());
-
-        SignUpDto signUpDto = userMapper.toSignUpDto(userDto);
-
-        User user = userMapper.signUpToUser(signUpDto);
-
-        if(!table.isAvailable(reservationDateTime)) {
-            System.out.println("The slot is taken sorry, pick another :D");
-        }
-        tableService.deleteTimeSlotsForReservation(tableNumber, reservationDateTime);
-        reservationService.makeReservation(user, table, restaurant, LocalDateTime.now(), reservationDateTime, partySize, specialRequests);
-        return "redirect:/reservations";
-    }
-
-    @RequestMapping("/reservations/edit/{reservationId}")
-    public String updateReservation(@PathVariable Long reservationId,
-                                    @RequestParam int partySize,
-                                    @RequestParam String specialRequests,
-                                    @RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime reservationDateTime) {
-        Reservation reservation = reservationService.findById(reservationId);
-        reservation.setPartySize(partySize);
-        reservation.setSpecialRequests(specialRequests);
-        reservation.setCheckInTime(reservationDateTime);
-        tableService.deleteTimeSlotsForReservation(reservation.getTable().getId(), reservationDateTime);
-        return "redirect:/reservations";
-    }
-
-    @PostMapping("/reservations/delete/{reservationId}")
-    public String deleteReservation(@PathVariable Long reservationId, @RequestParam String reason) {
-        Reservation reservation = reservationService.findById(reservationId);
-        tableService.canceledTimeSlots(reservation.getTable().getId(), reservation.getCheckInTime());
-        reservationService.cancelReservation(reservationId);
-        reservationHistoryService.moveReservationToHistory(reservation, "canceled", reason);
-        return "redirect:/reservation-history";
-    }
-}
Index: src/main/java/com/example/rezevirajmasa/demo/web/controller/RestaurantController.java
===================================================================
--- src/main/java/com/example/rezevirajmasa/demo/web/controller/RestaurantController.java	(revision 8ca35dc93473fb5be3777778a84fedee941c8790)
+++ 	(revision )
@@ -1,109 +1,0 @@
-package com.example.rezevirajmasa.demo.web.controller;
-
-import com.example.rezevirajmasa.demo.model.Customer;
-import com.example.rezevirajmasa.demo.model.Restaurant;
-import com.example.rezevirajmasa.demo.model.TableEntity;
-import com.example.rezevirajmasa.demo.service.CustomerService;
-import com.example.rezevirajmasa.demo.service.ReservationService;
-import com.example.rezevirajmasa.demo.service.RestaurantService;
-import com.example.rezevirajmasa.demo.service.TableService;
-import net.sourceforge.htmlunit.xpath.operations.Mod;
-import org.springframework.boot.Banner;
-import org.springframework.security.core.Authentication;
-import org.springframework.ui.Model;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.*;
-import org.springframework.ui.Model;
-import java.math.BigDecimal;
-import java.time.LocalDateTime;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-@Controller
-public class RestaurantController {
-    private final RestaurantService restaurantService;
-    private final TableService tableService;
-
-    public RestaurantController(RestaurantService restaurantService, TableService tableService) {
-        this.restaurantService = restaurantService;
-        this.tableService = tableService;
-    }
-
-    @GetMapping("/restaurants")
-    public String showRestaurants(@RequestParam(required = false) String search, Model model) {
-        List<Restaurant> restaurantList;
-        if(search == null) {
-            restaurantList = this.restaurantService.listall();
-        } else {
-            restaurantList = restaurantService.listRestaurantBy(search);
-        }
-
-        for (Restaurant restaurant : restaurantList) {
-            // Initialize a set to store unique capacities for this restaurant
-            Set<Integer> uniqueCapacities = new HashSet<>();
-
-            // Populate uniqueCapacities with unique capacity values for tables in this restaurant
-            for (TableEntity table : restaurant.getTablesList()) {
-                uniqueCapacities.add(table.getCapacity());
-            }
-
-            // Add uniqueCapacities to the model for this restaurant
-            model.addAttribute("uniqueCapacities_" + restaurant.getRestaurantId(), uniqueCapacities);
-        }
-        model.addAttribute("bodyContent", "restaurants");
-        model.addAttribute("restaurants", restaurantList);
-        return "index";
-    }
-
-    @GetMapping("/restaurants/{tableNumber}")
-    public String reserveTable(@PathVariable Long tableNumber, Model model) {
-        TableEntity tableEntity = tableService.findById(tableNumber);
-        Restaurant restaurant = tableEntity.getRestaurant();
-
-        model.addAttribute("table", tableEntity);
-        model.addAttribute("restaurant", restaurant);
-
-        model.addAttribute("bodyContent", "reservationConfirmation.html");
-
-        return "index";
-    }
-
-    @GetMapping("/restaurants/add")
-    public String showAddRestaurantForm(Model model) {
-        model.addAttribute("bodyContent", "restaurantForm");
-        return "index";
-    }
-
-    @PostMapping("/register-restaurant")
-    public String saveRestaurant(@RequestParam String name,
-                                 @RequestParam String cuisineType,
-                                 @RequestParam String address,
-                                 @RequestParam String phone,
-                                 @RequestParam String operatingHours,
-                                 @RequestParam BigDecimal rating,
-                                 @RequestParam int numberOfTables,
-                                 @RequestParam List<Integer> tableCapacities,
-                                 @RequestParam List<String> tableLocations,
-                                 @RequestParam List<String> tableSmokingAreas,
-                                 @RequestParam List<String> tableDescriptions,
-                                 @RequestParam String socialMediaLinks,
-                                 @RequestParam String website,
-                                 Model model) {
-
-        Restaurant restaurant = new Restaurant();
-        restaurant.setName(name);
-        restaurant.setCuisineType(cuisineType);
-        restaurant.setAddress(address);
-        restaurant.setPhone(phone);
-        restaurant.setOperatingHours(operatingHours);
-        restaurant.setRating(rating);
-        restaurant.setSocialMediaLinks(socialMediaLinks);
-        restaurant.setWebsite(website);
-
-        restaurantService.save(restaurant, numberOfTables, tableCapacities, tableLocations, tableSmokingAreas, tableDescriptions);
-        model.addAttribute("bodyContent", "restaurants");
-        return "redirect:/restaurants";
-    }
-
-}
