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); }
public void Delete(Pet pet) { _ptx.Remove(pet); }