Esempio n. 1
0
 internal void Guardar(CuentaGastosInfo info)
 {
     try
     {
         Logger.Info();
         var cuentaGastoDAL = new CuentaGastosDAL();
         if (info.CuentaGastoID != 0)
         {
             cuentaGastoDAL.Actualizar(info);
         }
         else
         {
             cuentaGastoDAL.Guardar(info);
         }
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }
Esempio n. 2
0
 internal List <CuentaGastosInfo> ObtenerTodos()
 {
     try
     {
         Logger.Info();
         var cuentaGastosDAL            = new CuentaGastosDAL();
         List <CuentaGastosInfo> result = cuentaGastosDAL.ObtenerTodos();
         return(result);
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }
Esempio n. 3
0
 internal ResultadoInfo <CuentaGastosInfo> ObtenerPorPagina(PaginacionInfo pagina, CuentaGastosInfo filtros)
 {
     try
     {
         Logger.Info();
         var cuentaGastosDAL = new CuentaGastosDAL();
         ResultadoInfo <CuentaGastosInfo> result = cuentaGastosDAL.ObtenerPorPagina(pagina, filtros);
         return(result);
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }