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