Play Framework Controller Handling Multiple Futures
问题 I have a Play controller that takes in a Model object that comes in from the user interface. This model object is a User that I'm trying to insert into the database. But before I insert this User in the table, I check if there is a duplicate user that already exist for the given EMail address. If yes, I reject the request and if not I insert. I'm using Slick and Play framework and here is my controller code: def registerNewUser(user: User) = { dbService.registerNewUser(User.toUserRow(user))