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