// GET: Calculator public ActionResult Calculator() { //获取省份 ViewBag.Provinces = CommonHelper.EntityListToSelctList(regionSv.GetProvince(), "请选择省份"); //获取户籍 ViewBag.UserTypes = CommonHelper.SelectListType(typeof(HouseholdPropertyEnum), "请选择户籍性质"); return(View()); }
// GET public IActionResult GetProvince() { var list = regionService.GetProvince(); return(Json(list)); }
public ActionResult Add2() { //获取省份 ViewBag.Provinces = CommonHelper.EntityListToSelctList(regionSv.GetProvince(), "请选择省份"); return(View()); }