public static void AddBreed(BreedData breed) { BreedRepository breedRep = new BreedRepository(); breedRep.Create(new Breed { Id = breed.Id, Name = breed.Name }); }
public static void RenameBreed(BreedData breed) { BreedRepository breedRep = new BreedRepository(); breedRep.Update(new Breed { Id = breed.Id, Name = breed.Name }); }
public static void DeleteBreed(BreedData selectedBreed) { BreedRepository breedRep = new BreedRepository(); breedRep.Delete(selectedBreed.Id); }