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