Example #1
0
        public void Update(object objToUpdate)
        {
            PersonRealm p = objToUpdate as PersonRealm;

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

            if (p != null)
            {
                realm.Write(() =>
                {
                    realm.Add(p);
                });
            }
        }