Ejemplo n.º 1
0
        // GET: products/detail/SKU-1234
        // GET: products/detail?id=SKU-1234
        public IActionResult Detail(string id)
        {
            IProductDAL dal     = new MockProductDAL();
            Product     product = dal.GetProduct(id);

            return(View(product));
        }
Ejemplo n.º 2
0
        // GET: products/tile
        public IActionResult Tile()
        {
            IProductDAL     dal      = new MockProductDAL();
            IList <Product> products = dal.GetProducts();

            return(View(products));
        }