public void Update(object objToUpdate) { PersonRealm p = objToUpdate as PersonRealm; if (p != null) { realm.Write(() => { realm.Add(p, update: true); }); } }
public void Create(object objToCreate) { PersonRealm p = objToCreate as PersonRealm; if (p != null) { realm.Write(() => { realm.Add(p); }); } }