Esempio n. 1
0
        //Those DO NOTHING apperantly...
        // private static List<Avatar> _avatarLst = new List<Avatar>();
        // public static int id = 1;


        public Avatar Create(Avatar avatar)
        {
            avatar.Id = DBinitializer.GetNextId();
            var list = DBinitializer.GetAvatars();

            list.Add(avatar);
            return(avatar);
        }
Esempio n. 2
0
        //private static List<Owner> _ownerLst = new List<Owner>();
        //static int id = 1;

        public Owner Create(Owner owner)
        {
            //owner.OwnerId = id++;
            //_ownerLst.Add(owner);
            //return owner;

            owner.Id = DBinitializer.GetNextId();
            var list = DBinitializer.GetOwners();

            list.Add(owner);
            return(owner);
        }