public void Execute() { DAOFactory daoFactory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); IModelDAO modelDAO = daoFactory.GetModelDAO(); _model = modelDAO.GetModelById(_modelId); }
public void Execute() { DAOFactory daoFactory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); IModelDAO modelDAO = daoFactory.GetModelDAO(); models = modelDAO.GetModelsByBrand(_brandId); }
public void Execute() { DAOFactory daoFactory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); IModelDAO modelDAO = daoFactory.GetModelDAO(); _updated = modelDAO.UpdateModel(_model); }
public MainMenu() { clientDAO = new ClientDAO(); carInventoryDAO = new CarInventoryDAO(); colorDAO = new ColorDAO(); operationsDAO = new OperationsDAO(); brandDAO = new BrandDAO(); modelDAO = new ModelDAO(); engineDAO = new EngineDAO(); employeeDAO = new EmployeeDAO(); dealDAO = new DealDAO(); }
public void init() { daoFactory = DAOFactory.GetFactory(DAOFactory.Type.Postgres); modelDAO = daoFactory.GetModelDAO(); }