Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
....
trait ItemRepository {
def createItem(name: String, code: Long, officeId: OfficeId): Try[ItemId]
def readItem(id: ItemId): Try[Item]
def updateItem(itemId: ItemId, officeId: OfficeId): Try[Item]
def deleteItem(id: ItemId): Try[ItemId]
}
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment