Ejemplo n.º 1
0
        public ActionResult CustomerHome()
        {
            List <string> lstProducts = rep.FetchTopProducts(Request.QueryString["user"]);

            ViewBag.TopProducts = lstProducts;
            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult AdminHome()
        {
            List <string> lstProducts = rep.FetchTopProducts();

            ViewBag.TopProducts = lstProducts;
            return(View());
        }