Exemple #1
0
 public List <Product> GetAllProducts()
 {
     return(_productRepositorie.GetProducts());
 }
        //private ProductRepository db = new ProductRepository();

        // GET: api/Products
        public IEnumerable <ProductAPI.core.Entities.Product> GetProducts()
        {
            return(db.GetProducts());
        }
Exemple #3
0
        public async Task <ActionResult> GetProducts()
        {
            var products = await _productRepositories.GetProducts();

            return(Ok(products));
        }