// GET: Gallery

        public ActionResult Search(string fname, string lname)
        {
            list_product_helper new_1 = new list_product_helper();
            List <product>      L1    = new_1.list_products();

            ViewData["list"] = L1;

            ViewData["user"] = fname + "" + lname;


            // Code for search method (if needed)
            return(View());
        }
Exemple #2
0
        // GET: Gallery

        public ActionResult Search(string fname, string lname, string sess_id, int uid)
        {
            list_product_helper new_1 = new list_product_helper();
            List <product>      L1    = new_1.list_products();

            ViewData["list"] = L1;
            ViewData["user"] = fname + " " + lname;
            ViewData["uid"]  = uid;

            int cart_count = new_1.cart_count(uid);

            ViewData["count"] = cart_count;

            return(View());
        }