Added InsertOrUpdate and InsertOrUpdateAndGetId methods to repository.