Пример #1
0
        protected override void Get()
        {
            base.Get();
            PropertyUOW manager = new PropertyUOW();

            Properties = manager.Get(SearchENtity);
        }
Пример #2
0
        protected override void Edit()
        {
            PropertyUOW mgr = new PropertyUOW();

            Entity = mgr.Get(Convert.ToInt32(EventArgument));
            EditMode();
            base.Edit();
        }
Пример #3
0
        protected override void Delete()
        {
            PropertyUOW manager = new PropertyUOW();
            Property    bank    = new Property();

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