protected override void Get()
        {
            TrainingProductManager mgr = new TrainingProductManager();

            Products = mgr.Get(SearchEntity);
            base.Get();
        }
        protected override void Delete()
        {
            TrainingProductManager mgr = new TrainingProductManager();

            Entity           = new TrainingProduct();
            Entity.ProductID = Convert.ToInt32(EventArgument);
            mgr.Delete(Entity);

            Get();
            base.Delete();
        }
        protected override void Edit()
        {
            TrainingProductManager mgr = new TrainingProductManager();

            //Entity holds the current ProductID
            Entity = mgr.Get(Convert.ToInt32(EventArgument));
            // Entity = mgr.Get(Convert.ToInt32("6"));

            //Set to Edit view Mode
            base.Edit();
        }
        protected override void Save()
        {
            TrainingProductManager mgr = new TrainingProductManager();

            if (Mode == "Add")
            {
                mgr.Insert(Entity);
            }
            else //Edit mode
            {
                mgr.Update(Entity);
            }
            ValidationErrors = mgr.ValidationErrors;

            base.Save();
        }