Exemple #1
0
        public IActionResult Get()
        {
            var productos = _productoRepositorio.GetAll();

            return(Ok(productos));
        }
 public IEnumerable <Producto> GetAll()
 {
     return(productoRepository.GetAll());
 }
Exemple #3
0
 public Producto[] GetAll()
 {
     return(_productoRepository.GetAll().Where(x => x.AnioCampania == 201805).ToArray());
 }
Exemple #4
0
        public async Task <IEnumerable <Producto> > GetAllProductos()
        {
            var productos = await _productoRepository.GetAll();

            return(productos.Select(ProductoMapper.Map));
        }