Beispiel #1
0
        public List <CityDTO> BindListCity()
        {
            List <CityDTO>
            ListCity = new List <CityDTO>()
            {
                new CityDTO {
                    CityId = 0, CityName = "Select"
                }
            };

            foreach (var item in objICityMaster.GetCitys())
            {
                CityDTO ct = new CityDTO();
                ct.CityId   = item.CityId;
                ct.CityName = item.CityName;
                ListCity.Add(ct);
            }

            return(ListCity);
        }
 public IEnumerable <CityDTO> CityList()
 {
     return(objCityM.GetCitys());
 }
 public ActionResult Details()
 {
     return(View(objICityMaster.GetCitys()));
 }