protected override void Get() { base.Get(); InsurenceUOW manager = new InsurenceUOW(); Insurences = manager.Get(SearchENtity); }
protected override void Edit() { InsurenceUOW mgr = new InsurenceUOW(); Entity = mgr.Get(Convert.ToInt32(EventArgument)); EditMode(); base.Edit(); }
protected override void Delete() { InsurenceUOW manager = new InsurenceUOW(); Insurence bank = new Insurence(); bank.Id = Convert.ToInt32(EventArgument); manager.Delete(bank); Get(); base.Delete(); }
protected override void Save() { InsurenceUOW mgr = new InsurenceUOW(); if (IsValid) { if (Mode == "Add") { //Add Data to DB mgr.Insert(Entity); } else { mgr.Update(Entity); } ValidationErrors = mgr.validationError; } base.Save(); }