Exemplo n.º 1
0
 public void ConvertTo(CountyView countyView, County county)
 {
     county.CountyPK  = countyView.CountyPK;
     county.Name      = countyView.Name;
     county.CountryFK = countyView.CountryFK;
     county.Deleted   = countyView.Deleted;
 }
Exemplo n.º 2
0
        public void BindDDLs(CountyView countyView, ObjectContext db)
        {
            ICountriesRepository countriesRepository = new CountriesRepository(db);

            countyView.Countries = new SelectList(countriesRepository.GetValid().OrderBy("Name ASC").ToList(), "CountryPK", "Name");
        }