protected override void Edit() { TrainingProductManager mgr = new TrainingProductManager(); Entity = mgr.Get(Convert.ToInt32(EventArgument)); base.Edit(); }
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.Id = Convert.ToInt32(EventArgument); mgr.Delete(Entity); Get(); base.Delete(); }
protected override void Save() { TrainingProductManager mgr = new TrainingProductManager(); if (Mode == "Add") { mgr.Insert(Entity); } else { mgr.Update(Entity); } ValidationErrors = mgr.ValidationErrors; base.Save(); }