Exemplo n.º 1
0
        public async Task <ActionResult <List <Marca> > > GetMarcasAll()
        {
            var marcas = await _marcaRepository.GetAllAsync();

            return(Ok(marcas));
        }
Exemplo n.º 2
0
        public async Task <ActionResult <List <Categoria> > > GetCategoriasAll()
        {
            var categorias = await _categoriaRepository.GetAllAsync();

            return(Ok(categorias));
        }