//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); }
//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); }