Beispiel #1
0
 public List <string> ListCountries()
 {
     try
     {
         List <string> countries = _citiesRepository.ListCountries();
         return(countries);
     }
     catch (NullReferenceException)
     {
         throw new NotFoundException("Countries were not found!");
     }
     catch (MySqlException)
     {
         throw new ConnectionException();
     }
 }