コード例 #1
0
        public IActionResult Get()
        {
            var productos = _productoRepositorio.GetAll();

            return(Ok(productos));
        }
コード例 #2
0
 public IEnumerable <Producto> GetAll()
 {
     return(productoRepository.GetAll());
 }
コード例 #3
0
ファイル: ProductoService.cs プロジェクト: eiq21/BelExam
 public Producto[] GetAll()
 {
     return(_productoRepository.GetAll().Where(x => x.AnioCampania == 201805).ToArray());
 }
コード例 #4
0
        public async Task <IEnumerable <Producto> > GetAllProductos()
        {
            var productos = await _productoRepository.GetAll();

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