コード例 #1
0
 public ActionResult CityForm()
 {
     foreach (var data in CityClassList)
     {
         ViewData["CityID"] = data.CityId;
         ViewData["City"]   = data.City;
     }
     CityClassList.Clear();
     ViewBag.CountryList = Bc.GetCountryList();
     return(View(Bc.GetCityList()));
 }
コード例 #2
0
 public ActionResult CustomerForm()
 {
     foreach (var data in EditCustomerList)
     {
         ViewData["CustomerId"] = data.CustomerId;
         ViewData["Name"]       = data.Name;
         ViewData["Address"]    = data.Address;
         ViewData["CityId"]     = data.CityId;
         ViewData["City"]       = data.City;
         ViewData["StateId"]    = data.StateId;
         ViewData["State"]      = data.State;
         ViewData["CountryID"]  = data.CountryId;
         ViewData["Country"]    = data.Country;
         ViewData["Status"]     = data.Status;
     }
     EditCustomerList.Clear();
     ViewBag.CountryList = Bc.GetCountryList();
     return(View(Cc.GetCustomerList()));
 }