Beispiel #1
0
 public void DeleteEmployee(int id)
 {
     if (com == null)
     {
         throw new Exception("The Details of the Database are not yet set");
     }
     com.DeleteEmployee(id);
 }
Beispiel #2
0
 private static void deleteEmp()
 {
     try
     {
         int id = UIInteraction.GetInteger("Enter an ID to delete");
         component.DeleteEmployee(id);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }