/// <summary> /// Obtiene un lista paginada /// </summary> /// <param name="pagina"></param> /// <param name="filtro"></param> /// <returns></returns> internal ResultadoInfo <ChoferInfo> ObtenerFormulaChoferPorPagina(PaginacionInfo pagina, ChoferInfo filtro) { ResultadoInfo <ChoferInfo> lista = null; try { Dictionary <string, object> parameters = AuxChoferDAL.ObtenerParametrosFormulaChoferPorPagina(pagina, filtro); DataSet ds = Retrieve("Chofer_ObtenerPorPagina", parameters); if (ValidateDataSet(ds)) { lista = MapChoferDAL.ObtenerPorPagina(ds); } } 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(lista); }