// GET: Distric/Create public ActionResult Create() { var district = new vmDistrict(); // var item = idv.GetKVP(); district.Divitions = idv.GetKVP(); return(View(district)); }
// 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)); }