Example #1
0
 public void DeleteType(int id)
 {
     if (id <= 0)
     {
         throw new InvalidDataException("Type not found");
     }
     _petTypeRepo.DeleteType(id);
 }
 /// <summary>
 /// Deletes a Type
 /// </summary>
 /// <param name="TypeId"></param>
 /// <returns></returns>
 public PetTypes DeleteType(int TypeId)
 {
     return(_petTypeRepo.DeleteType(TypeId));
 }