/// <summary> /// Obtiene una lista de Cuenta filtrando por el estatus Activo = 1, Inactivo = 0 /// </summary> /// <returns></returns> internal IList <CuentaInfo> ObtenerTodos(EstatusEnum estatus) { try { Logger.Info(); Dictionary <string, object> parameters = AuxCuentaDAL.ObtenerTodos(estatus); DataSet ds = Retrieve("Cuenta_ObtenerTodos", parameters); IList <CuentaInfo> result = null; if (ValidateDataSet(ds)) { result = MapCuentaDAL.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); } }
/// <summary> /// Obtiene un registro de Entrada Ganado Costeo por su EntradaId /// </summary> /// <returns></returns> internal IList <CuentaInfo> ObtenerTodos() { try { Logger.Info(); DataSet ds = Retrieve("Cuenta_ObtenerTodos"); IList <CuentaInfo> result = null; if (ValidateDataSet(ds)) { result = MapCuentaDAL.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); } }