Exemple #1
0
 internal List <ContenedorTipoGanadoPoliza> ObtenerTipoPorAnimal(List <AnimalInfo> animales, TipoMovimiento tipoMovimiento)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxTipoGanadoDAL.ObtenerParametrosPorAnimal(animales, tipoMovimiento);
         DataSet ds     = Retrieve("TipoGanado_ObtenerPorAnimalXML", parameters);
         var     result = new List <ContenedorTipoGanadoPoliza>();
         if (ValidateDataSet(ds))
         {
             result = MapTipoGanadoDAL.ObtenerTipoPorAnimal(ds);
         }
         return(result);
     }
     catch (SqlException ex)
     {
         Logger.Error(ex);
         throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex);
     }
     catch (DataException ex)
     {
         Logger.Error(ex);
         throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex);
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }