Example #1
0
        public void BindDDLs(SubstationView substationView, ObjectContext db)
        {
            IRegionalOfficesRepository regionalOfficesRepository = new RegionalOfficesRepository(db);

            substationView.RegionalOffices = new SelectList(regionalOfficesRepository.GetValid().OrderBy("Name ASC").ToList(), "RegionalOfficePK", "Name");
        }
Example #2
0
 public void ConvertTo(SubstationView substationView, Substation substation)
 {
     substation.SubstationPK     = substationView.SubstationPK;
     substation.Name             = substationView.Name;
     substation.RegionalOfficeFK = substationView.RegionalOfficeFK;
 }