public PetColor DeletePetColor(PetColor deletePetColor)
        {
            var deleteColor = _ptx.Remove(deletePetColor).Entity;

            _ptx.SaveChanges();
            return(deleteColor);
        }
        public Owner DeleteOwner(int id)
        {
            var ownerRemoved = _ptx.Remove(new Owner {
                ID = id
            }).Entity;

            _ptx.SaveChanges();
            return(ownerRemoved);
        }
Esempio n. 3
0
 public void Delete(Pet pet)
 {
     _ptx.Remove(pet);
 }