protected void Save <TRealm>(IEntityBase entity) where TRealm : Realms.RealmObject, IEntityBase { var realmEntity = _mappingEngine.Map <TRealm>(entity); _repository.AddOrUpdate <TRealm>(realmEntity); }