private void Get()
        {
            TrainingProductManager mgr = new TrainingProductManager();

            Mode     = "Search";
            Products = mgr.Get(SearchEntity);
        }
        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();
                }
            }
        }
 private void Get()
 {
     TrainingProductManager mgr = new TrainingProductManager();
     Mode = "Search";
     Products = mgr.Get(SearchEntity);
 }
 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();
             }
         }   
 }