I’d like to get existing AR from repository or create new if repository does not contains one.
Simple example would be todo lists where a command AddItemToList(listName, itemName) with listName as TodoList identifier adds item to existing list or creates a list if none existed before.
It looks like with current Repository API the best way is try to load AR and catch exception if not found. But this isn’t right… so I was just wondering how this should be implemented.
Thanks in advance.