示例#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();
        }