Ejemplo n.º 1
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));
            }
        }