public async Task <List <ProductViewModel> > getAll()

        {
            var data = await _manageProductService.GetAll();

            return(data);
        }
Beispiel #2
0
        public async Task <IActionResult> GetAll()
        {
            var products = await _manageProductService.GetAll();

            return(Ok(products));
        }