Skip to content

Instantly share code, notes, and snippets.

@Jacoby6000
Created March 26, 2015 13:18
Show Gist options
  • Save Jacoby6000/eddabdc9b69a8e20e63b to your computer and use it in GitHub Desktop.
Save Jacoby6000/eddabdc9b69a8e20e63b to your computer and use it in GitHub Desktop.
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