Exemple #1
0
 /// <summary>
 ///     Löscht ein Land wenn es nicht mehr in Verwendung ist
 /// </summary>
 /// <param name="country"></param>
 public void Delete(Country country)
 {
     if (country == null)
     {
         throw new ArgumentNullException(nameof(country));
     }
     if (_countryDao.IsInUse(country))
     {
         throw new NodeInUseException();
     }
     _countryDao.Delete(country);
 }
Exemple #2
0
 public bool Delete(int id)
 {
     return(countries.Delete(id));
 }
 public void Delete(int id)
 {
     _countryDao.Delete(id);
 }