From the course: Build Spring Boot Apps with the Kotlin Programming Language

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Step 2: Explaining the challenge

Step 2: Explaining the challenge

- [Man] Back to our controller then. We've dealt with the home page, that's the better functionality that says, "Is there availability?" The next piece of functionality, is this check availability method. I'm going to ask you to write the code in here, to make this work. At the moment, what we're doing, is we're finding a seat from the theater service. That definitely needs to change. We need to find a seat from the repository. Going forward, we need to call our BookingService.isSeatFree. Actually, that method, Sorry, I'm just going to stop this running in the background. That method on our BookingService.isSeatFree. Let's just go and find it. Now we want to know not just what the seat is, but also what the performance is. I'm just going to put a little note in here that says, we'll need to make this work. By make this work what I mean is we'll need to go, and see if we can find a matching booking for this particular seat and performance, and if there is one we'll return faulse, it's…

Contents