internal ResultadoInfo <CuentaGastosInfo> ObtenerPorPagina(PaginacionInfo pagina, CuentaGastosInfo filtros) { try { Dictionary <string, object> parameters = AuxCuentaGastosDAL.ObtenerParametrosPorPagina(pagina, filtros); DataSet ds = Retrieve("[dbo].[CuentaGastos_ObtenerPorPagina]", parameters); ResultadoInfo <CuentaGastosInfo> result = null; if (ValidateDataSet(ds)) { result = MapCuentaGastosDAL.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); } }
internal List <CuentaGastosInfo> ObtenerTodos() { try { DataSet ds = Retrieve("[dbo].[CuentaGastos_ObtenerTodos]"); List <CuentaGastosInfo> result = null; if (ValidateDataSet(ds)) { result = MapCuentaGastosDAL.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); } }