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

            ViewBag.category = cat;

            return(View(ads));
        }
Example #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));
        }
Example #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));
        }
Example #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));
            }
        }