protected override void Delete()
 {
     mg     = new TrainingProductManager();
     Entity = mg.Get(Convert.ToInt32(EventArgument));
     mg.Delete(Entity);
     Get();
     base.Delete();
 }
 protected override void Init()
 {
     base.Init();
     Products     = new List <TrainingProduct>();
     SearchEntity = new TrainingProduct();
     Entity       = new TrainingProduct();
     mg           = new TrainingProductManager();
 }
 protected override void Save()
 {
     mg = new TrainingProductManager();
     if (Mode == "Add")
     {
         mg.Insert(Entity);
     }
     else
     {
         mg.Update(Entity);
     }
     ValidationErrors = mg.ValidationErrors;
     base.Save();
 }
 protected override void Get()
 {
     mg       = new TrainingProductManager();
     Products = mg.Get(SearchEntity);
 }
 protected override void Edit()
 {
     mg     = new TrainingProductManager();
     Entity = mg.Get(Convert.ToInt32(EventArgument));
     base.Edit();
 }