Created
March 26, 2015 13:18
-
-
Save Jacoby6000/eddabdc9b69a8e20e63b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected def createDbRecords(record: Distributor)(implicit session: JdbcBackend.SessionDef): Either[ValidationError, Distributor] = { | |
record.id.map(id => Left(ValidationError("An id must not be specified when creating a signup request."))).getOrElse { | |
record.address.id.map(id => Left(ValidationError("An address id must not be specified when creating a signup request."))).getOrElse { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment