Пример #1
0
 /// <summary>
 /// Obtiene una lista filtrando por el estatus Activo = 1, Inactivo = 0
 /// </summary>
 /// <returns></returns>
 internal IList <RegistroVigilanciaHumedadInfo> ObtenerTodos(EstatusEnum estatus)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxRegistroVigilanciaHumedadDAL.ObtenerTodos(estatus);
         DataSet ds = Retrieve("RegistroVigilanciaHumedad_ObtenerTodos", parameters);
         IList <RegistroVigilanciaHumedadInfo> result = null;
         if (ValidateDataSet(ds))
         {
             result = MapRegistroVigilanciaHumedadDAL.ObtenerTodos(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);
     }
 }