Пример #1
0
        public ActionResult Index(int id)
        {
            Ads        master = db.promstrdata(id);
            List <Ads> detail = db.prodtldata(id);

            Merge_Ads_images pass = new Merge_Ads_images();

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

            return(View(pass));
        }
Пример #2
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));
        }