Exemplo n.º 1
0
 /// <summary>
 /// Obtiene una lista
 /// </summary>
 /// <returns></returns>
 public IList <IndicadorProductoInfo> ObtenerTodos()
 {
     try
     {
         Logger.Info();
         var indicadorProductoBL = new IndicadorProductoBL();
         IList <IndicadorProductoInfo> result = indicadorProductoBL.ObtenerTodos();
         return(result);
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Obtiene un lista paginada
 /// </summary>
 /// <param name="pagina"></param>
 /// <param name="filtro"></param>
 /// <returns></returns>
 public ResultadoInfo <IndicadorProductoInfo> ObtenerPorPagina(PaginacionInfo pagina, IndicadorProductoInfo filtro)
 {
     try
     {
         Logger.Info();
         var indicadorProductoBL = new IndicadorProductoBL();
         ResultadoInfo <IndicadorProductoInfo> result = indicadorProductoBL.ObtenerPorPagina(pagina, filtro);
         return(result);
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Metodo para Guardar/Modificar una entidad IndicadorProducto
 /// </summary>
 /// <param name="info">Representa la entidad que se va a grabar</param>
 public int Guardar(IndicadorProductoInfo info)
 {
     try
     {
         Logger.Info();
         var indicadorProductoBL = new IndicadorProductoBL();
         int result = indicadorProductoBL.Guardar(info);
         return(result);
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// Obtiene un indicador producto por clave
        /// de indicador y clave de producto
        /// </summary>
        /// <param name="indicadorProductoInfo"></param>
        /// <returns></returns>
        public IndicadorProductoInfo ObtenerPorIndicadorProducto(IndicadorProductoInfo indicadorProductoInfo)
        {
            IndicadorProductoInfo result;

            try
            {
                Logger.Info();
                var indicadorProductoBL = new IndicadorProductoBL();
                result = indicadorProductoBL.ObtenerPorIndicadorProducto(indicadorProductoInfo);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }
            return(result);
        }
Exemplo n.º 5
0
        public List <IndicadorProductoInfo> ObtenerPorProductoId(ProductoInfo productoInfo, EstatusEnum estatus)
        {
            List <IndicadorProductoInfo> result;

            try
            {
                Logger.Info();
                var indicadorProductoBL = new IndicadorProductoBL();
                result = indicadorProductoBL.ObtenerPorProductoId(productoInfo, estatus);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }
            return(result);
        }