public IActionResult Get() { var productos = _productoRepositorio.GetAll(); return(Ok(productos)); }
public IEnumerable <Producto> GetAll() { return(productoRepository.GetAll()); }
public Producto[] GetAll() { return(_productoRepository.GetAll().Where(x => x.AnioCampania == 201805).ToArray()); }
public async Task <IEnumerable <Producto> > GetAllProductos() { var productos = await _productoRepository.GetAll(); return(productos.Select(ProductoMapper.Map)); }