示例#1
0
        // GET: Distric/Create
        public ActionResult Create()
        {
            var district = new vmDistrict();

            // var item = idv.GetKVP();
            district.Divitions = idv.GetKVP();
            return(View(district));
        }
示例#2
0
        // GET: Distric/Edit/5
        public ActionResult Edit(int id)
        {
            var getdc  = idis.GetDistrict(id);
            var editdc = new vmDistrict();

            editdc.DistrictId = getdc.DistrictId;
            editdc.Name       = getdc.Name;
            editdc.DivitionId = getdc.DivitionId;
            editdc.Divitions  = idv.GetKVP();

            return(View(editdc));
        }