Exemplo n.º 1
0
        public Owner DeleteOwner(Owner ownerToDelete)
        {
            var deletedOwner = _context.Remove(ownerToDelete).Entity;

            _context.SaveChanges();
            return(deletedOwner);
        }
Exemplo n.º 2
0
        public PetType DeletePetType(PetType petTypeToDelete)
        {
            var deletedPeType = _context.Remove(petTypeToDelete).Entity;

            _context.SaveChanges();
            return(deletedPeType);
        }