public PropertyValueModel Get(int id)
        {
            var entity =_propertyValueService.GetPropertyValueById(id);
            var model = new PropertyValueModel
            {

                Id = entity.Id,

            //		        Property = entity.Property,

                Value = entity.Value,

                Adduser = new UserModel { Id = entity.Adduser.Id, UserName = entity.Adduser.UserName },

                Addtime = entity.Addtime,

                UpdUser = new UserModel { Id = entity.UpdUser.Id, UserName = entity.UpdUser.UserName },

                UpdTime = entity.UpdTime,

            };
            return model;
        }
        public bool Post(PropertyValueModel model)
        {
            var entity = new PropertyValueEntity
            {

            //				Property = model.Property,

                Value = model.Value,

                Adduser = (UserBase)_workContext.CurrentUser,

                Addtime = DateTime.Now,

                UpdUser = (UserBase)_workContext.CurrentUser,

                UpdTime = DateTime.Now,

            };
            if(_propertyValueService.Create(entity).Id > 0)
            {
                return true;
            }
            return false;
        }
        public bool Put(PropertyValueModel model)
        {
            var entity = _propertyValueService.GetPropertyValueById(model.Id);
            if(entity == null)
                return false;

            //			entity.Property = model.Property;

            entity.Value = model.Value;

            entity.UpdUser = (UserBase)_workContext.CurrentUser;

            entity.UpdTime = DateTime.Now;

            if(_propertyValueService.Update(entity) != null)
                return true;
            return false;
        }