Пример #1
0
 // Remove City from Form
 public bool RemoveCity(string ID)
 {
     if (ID != "" & ID != null)
     {
         List <City> city = database.SelectCity(ID);
         if (city.Count == 1)
         {
             database.Remove(city[0]);
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }