Esempio n. 1
0
        public async Task <IActionResult> GetProducts()
        {
            var prodList = _productInterface.GetProducts();
            var i        = "santu";

            return(Ok(prodList));
        }
Esempio n. 2
0
        public JsonResult GetAllProducts()
        {
            var products = productRepository.GetProducts();

            return(Json(products));
        }