Пример #1
0
 //BUSCAR POR SERVICO
 public IList <Atendimento> BuscarPorServico(Atendimento atendimento)
 {
     try
     {
         if (atendimento.Servico.Tipo != "")
         {
             var aTemp = consultaDao.BuscarPorServico(atendimento.Servico.Tipo);
             return(aTemp);
         }
         else
         {
             return(null);
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Tipo de dados não suportado!" + ex.Message);
     }
 }