コード例 #1
0
        // GET: MacroAreaAjax
        public ActionResult Index()
        {
            eMacroAreaM obj = new eMacroAreaM();

            obj.StateList = BL_tblMacroAreaM.StateList(obj.iStateId, obj.iCountryId);
            obj.CityList  = BL_tblMacroAreaM.CityList(obj.iCityId, obj.iStateId, obj.iCountryId);
            return(View(obj));
        }
コード例 #2
0
        public ActionResult Edit(int id)
        {
            eMacroAreaM obj = new eMacroAreaM();

            obj                   = BL_tblMacroAreaM.GetSingleRecordById(id);
            obj.StateList         = BL_tblMacroAreaM.StateList(obj.iStateId, obj.iCountryId);
            obj.CityList          = BL_tblMacroAreaM.CityList(obj.iCityId, obj.iStateId, obj.iCountryId);
            ViewBag.OpenEditModel = "Y";
            return(PartialView("Index", obj));
        }