示例#1
0
 public ActionResult Index()
 {
     ViewBag.CountryList = SelectionList.CountryList().Select(m => new { m.CountryId, m.CountryName });
     ViewBag.StateList   = SelectionList.StateList().Select(m => new { m.StateId, m.StateName });
     ViewBag.CityList    = SelectionList.CityList().Select(m => new { m.CityId, m.CityName });
     return(View());
 }