Example #1
0
        public Pet Create(Pet pet)
        {
            var petEntry = _ctx.Add(pet);

            _ctx.SaveChanges();
            return(petEntry.Entity);
        }
Example #2
0
        public User Create(User user)
        {
            var userEntry = _ctx.Add(user);

            _ctx.SaveChanges();
            return(userEntry.Entity);
        }
Example #3
0
        public Owner Create(Owner owner)
        {
            var ownerEntry = _ctx.Add(owner);

            _ctx.SaveChanges();
            return(ownerEntry.Entity);
        }