Пример #1
0
 public List <Product> GetAllProducts()
 {
     return(_productRepositorie.GetProducts());
 }
Пример #2
0
        //private ProductRepository db = new ProductRepository();

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

            return(Ok(products));
        }