Example #1
0
 /// <summary>
 /// Obtiene un lista paginada
 /// </summary>
 /// <param name="pagina"></param>
 /// <param name="filtro"></param>
 /// <returns></returns>
 internal ResultadoInfo <TrampaInfo> ObtenerPorPagina(PaginacionInfo pagina, TrampaInfo filtro)
 {
     try
     {
         Dictionary <string, object> parameters = AuxTrampaDAL.ObtenerParametrosPorPagina(pagina, filtro);
         DataSet ds = Retrieve("Trampa_ObtenerPorPagina", parameters);
         ResultadoInfo <TrampaInfo> result = null;
         if (ValidateDataSet(ds))
         {
             result = MapTrampaDAL.ObtenerPorPagina(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);
     }
 }