public EventType GetOrCreate(EventType eventType, Guid accountId) { var lockObj = LockObject.ForEventType(accountId, eventType.SystemName); lock (lockObj) { var repository = GetEventTypeRepository(accountId); return(repository.GetOrCreate(eventType)); } }