Exemplo n.º 1
0
        private void Save()
        {
            TrainingProductManager mgr = new TrainingProductManager();

            if (Mode == "Add")
            {
                mgr.Insert(Entity);
            }
            ValidationErrors = mgr.ValidationErrors;
            if (ValidationErrors.Count > 0)
            {
                isValid = false;
            }
            if (!isValid)
            {
                if (Mode == "Add")
                {
                    AddMode();
                }
            }
        }
Exemplo n.º 2
0
        private void Get()
        {
            TrainingProductManager mgr = new TrainingProductManager();

            Products = mgr.Get(SearchEntity);
        }