extend the service with a GetCities and GetCountries method
This commit is contained in:
parent
f5795dc45d
commit
d025ed1b01
|
@ -30,5 +30,9 @@ namespace Server
|
|||
List<Strain> GetStrains();
|
||||
[OperationContract]
|
||||
List<Doctor> GetDoctors();
|
||||
[OperationContract]
|
||||
List<City> GetCities();
|
||||
[OperationContract]
|
||||
List<Country> GetCountries();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,18 @@ namespace Server
|
|||
return dataaccess.GetAllStrains();
|
||||
}
|
||||
|
||||
public List<City> GetCities()
|
||||
{
|
||||
CityDB dataaccess = new CityDB();
|
||||
return dataaccess.GetAllCities();
|
||||
}
|
||||
|
||||
public List<Country> GetCountries()
|
||||
{
|
||||
CountryDB dataaccess = new CountryDB();
|
||||
return dataaccess.GetAllCountries();
|
||||
}
|
||||
|
||||
public void WriteCity(City city)
|
||||
{
|
||||
CityDB dataaccess = new CityDB();
|
||||
|
|
Loading…
Reference in New Issue