Пример #1
0
 public ActionResult EditState(int stateId)
 {
     foreach (var data in Bc.GetStateListByStateId(stateId))
     {
         StateClass sc = new StateClass()
         {
             StateId   = data.StateID,
             State     = data.State1,
             CountryId = data.Country.CountryID,
             Country   = data.Country.Country1
         };
         StateClassList.Add(sc);
     }
     return(RedirectToAction("StateForm"));
 }