示例#1
0
        public JsonResult Get_Quan(int ID_ThanhPho)
        {            
            var helperModel = new Get_SelectList();

            var listQuan = helperModel.Get_Quan(ID_ThanhPho);

            return Json(listQuan, JsonRequestBehavior.AllowGet);            
        }
示例#2
0
        // GET: Checkout
        public ActionResult Index()
        {
            var model = new BillingInfo();

            var helperModel = new Get_SelectList();

            var listThanhPho = helperModel.Get_ThanhPho();
            var listQuan = helperModel.Get_Quan();

            ViewBag.City_ID = new SelectList(listThanhPho, "Id", "Name");
            ViewBag.District_ID = new SelectList(listQuan, "Id", "Name");

            return View(model);
        }