Exemplo n.º 1
0
        public ActionResult Index()
        {
            List <Ads>      ads = db.getimagewisedata();
            List <Category> cat = db.NavMenu();

            ViewBag.category = cat;

            return(View(ads));
        }
Exemplo n.º 2
0
        // GET: itemdetails
        public ActionResult Index(string id)
        {
            ViewBag.getsearch = id;
            List <Ads>      ads = db.Searchdata(id);
            List <Category> cat = db.NavMenu();

            ViewBag.category = cat;

            return(View(ads));
        }
Exemplo n.º 3
0
        public ActionResult Index(int id)
        {
            Ads        master = db.promstrdata(id);
            List <Ads> detail = db.prodtldata(id);

            List <Category> cat = db.NavMenu();

            ViewBag.category = cat;

            Merge_Ads_images pass = new Merge_Ads_images();

            pass.ads    = master;
            pass.images = detail;

            return(View(pass));
        }
Exemplo n.º 4
0
        public ActionResult Index(int getid)
        {
            Ads             bid = db.adsdetail(getid);
            List <Category> cat = db.NavMenu();

            ViewBag.category = cat;

            if (bid.sold_product == 'Y'.ToString())
            {
                return(RedirectToAction("Index", "main"));
            }
            else
            {
                ViewBag.bid_user = db.Bid_user_details(getid);

                return(View(bid));
            }
        }