예제 #1
0
 //BUSCAR POR PET
 public IList <Atendimento> BuscarPorPet(Atendimento atendimento)
 {
     try
     {
         if (atendimento.Pet.CodPet >= 0)
         {
             var aTemp = consultaDao.BuscarPorPet(atendimento.Pet.CodPet);
             return(aTemp);
         }
         else
         {
             return(null);
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Tipo de dados não suportado!" + ex.Message);
     }
 }