Example #1
0
        /// <summary>
        /// Actualiza el numero de arete de una deteccion con foto a la entrada a enfermeria
        /// </summary>
        /// <param name="animalDetectado"></param>
        /// <returns></returns>
        public bool ActualizarAreteDeteccionConFoto(AnimalDeteccionInfo animalDetectado)
        {
            bool retValue = false;

            try
            {
                Logger.Info();
                Dictionary <string, object> parameters = AuxDeteccionDAL.ObtenerParametrosActualizadDeteccionFoto(animalDetectado);
                Update("DeteccionGanado_ActualizarDeteccionConFoto", parameters);
                retValue = true;
            }
            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);
            }

            return(retValue);
        }
Example #2
0
 internal int Guardar(DeteccionInfo deteccionGrabar)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxDeteccionDAL.ObtenerParametrosGrabar(deteccionGrabar);
         int result = Create("DeteccionGanado_GrabarDeteccion", parameters);
         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);
     }
 }