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);
        }
Ejemplo n.º 3
0
        public void Execute()
        {
            DAOFactory daoFactory = DAOFactory.GetFactory(DAOFactory.Type.Postgres);
            IModelDAO  modelDAO   = daoFactory.GetModelDAO();

            _updated = modelDAO.UpdateModel(_model);
        }
Ejemplo n.º 4
0
 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();
 }