Beispiel #1
0
 public List <CityRepresentation> GetAllCities()
 {
     using (ISQLConnection dataSource = DataSource)
     {
         return(dataSource.GetAllCities().Select(c => RepresentationConverter.convertCity(c)).ToList());
     }
 }
Beispiel #2
0
 public CityRepresentation GetCityById(long id)
 {
     using (ISQLConnection dataSource = DataSource)
     {
         return(RepresentationConverter.convertCity(dataSource.GetCityById(id)));
     }
 }