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