Exemplo n.º 1
0
 /// <summary>
 /// Obtiene un lista paginada
 /// </summary>
 /// <param name="pagina"></param>
 /// <param name="filtro"></param>
 /// <returns></returns>
 internal ResultadoInfo <FormulaInfo> ObtenerPorPagina(PaginacionInfo pagina, FormulaInfo filtro)
 {
     try
     {
         Dictionary <string, object> parameters = AuxFormulaDAL.ObtenerParametrosPorPagina(pagina, filtro);
         DataSet ds = Retrieve("Formula_ObtenerPorPagina", parameters);
         ResultadoInfo <FormulaInfo> result = null;
         if (ValidateDataSet(ds))
         {
             result = MapFormulaDAL.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);
     }
 }