Example #1
0
 public int GuardarDeteccion(DeteccionInfo deteccionGrabar, FlagCargaInicial esCargaInicial, AnimalInfo animal)
 {
     try
     {
         Logger.Info();
         var deteccionBl = new DeteccionBL();
         int result      = deteccionBl.Guardar(deteccionGrabar, esCargaInicial, animal);
         return(result);
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }
Example #2
0
        /// <summary>
        /// Actualizar deteccion de ganado con el arete ingresado y la foto especificada
        /// </summary>
        /// <param name="animalDetectado"></param>
        public bool ActualizarDeteccionAreteConFoto(AnimalDeteccionInfo animalDetectado)
        {
            bool retValue = false;

            try
            {
                Logger.Info();
                var deteccionBl = new DeteccionBL();
                retValue = deteccionBl.ActualizarDeteccionConFoto(animalDetectado);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }

            return(retValue);
        }