Exemple #1
0
        //GET Api/Products
        public IEnumerable <ProductListModel> GetProductList()
        {
            //_productModelFactory = productModelFactory;
            var query = _productModelFactory.GetAllProductsList() as IEnumerable <ProductListModel>;

            return(query);
        }
Exemple #2
0
        // GET: Product
        public ActionResult ListX(string productName = "", int storeId = 0, int pageIndex = 1, int pageSize = 15, bool showHidden = false)
        {
            var query = _productModelFactory.GetAllProductsList();

            PagedList <ProductListModel> model = new PagedList <ProductListModel>(query, pageIndex, pageSize);

            return(View(model));
        }