public void Execute() { try { DAOFactory factory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); IFlightDAO flightDao = factory.GetFlight(); flightDao.Delete(_id); } catch (Exception e) { Console.WriteLine(e.ToString()); } }
public void Execute() { try { DAOFactory factory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); IFlightDAO flightDao = factory.GetFlight(); flightDao.Delete(_id); } catch (Exception e) { Console.WriteLine(e.ToString()); } }