Example #1
0
        protected override void Get()
        {
            base.Get();
            InsurenceUOW manager = new InsurenceUOW();

            Insurences = manager.Get(SearchENtity);
        }
Example #2
0
        protected override void Edit()
        {
            InsurenceUOW mgr = new InsurenceUOW();

            Entity = mgr.Get(Convert.ToInt32(EventArgument));
            EditMode();
            base.Edit();
        }
Example #3
0
        protected override void Delete()
        {
            InsurenceUOW manager = new InsurenceUOW();
            Insurence    bank    = new Insurence();

            bank.Id = Convert.ToInt32(EventArgument);
            manager.Delete(bank);
            Get();
            base.Delete();
        }
Example #4
0
        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();
        }