Exemple #1
0
        public override ServiceResult <T> Update(T item)
        {
            var basePart = WidgetBasePartService.Get(item.ID);

            item.CopyTo(basePart);
            WidgetBasePartService.Update(basePart);
            return(base.Update(item));
        }
        public override ServiceResult <T> Update(T item)
        {
            item.ExtendData = JsonConvert.SerializeObject(item);
            var basePart = WidgetBasePartService.Get(item.ID);

            item.CopyTo(basePart);
            WidgetBasePartService.Update(basePart);
            return(new ServiceResult <T>());
        }
Exemple #3
0
        public override ServiceResult <T> Update(T item)
        {
            ServiceResult <T> result = null;

            BeginTransaction(() =>
            {
                var basePart = WidgetBasePartService.Get(item.ID);
                item.CopyTo(basePart);
                WidgetBasePartService.Update(basePart);
                result = base.Update(item);
            });
            return(result);
        }
 public override void Update(T item)
 {
     item.ExtendData = JsonConvert.SerializeObject(item);
     WidgetBasePartService.Update(item.ToWidgetBasePart());
     Signal.Trigger(CacheTrigger.WidgetChanged);
 }
Exemple #5
0
 public override ServiceResult <T> Update(T item, bool saveImmediately = true)
 {
     item.ExtendData = JsonConvert.SerializeObject(item);
     WidgetBasePartService.Update(item.ToWidgetBasePart(), saveImmediately);
     return(new ServiceResult <T>());
 }
Exemple #6
0
 public override void Update(T item, bool saveImmediately = true)
 {
     item.ExtendData = JsonConvert.SerializeObject(item);
     WidgetBasePartService.Update(item.ToWidgetBasePart(), saveImmediately);
 }
        public override ServiceResult <T> Update(T item, bool saveImmediately = true)
        {
            WidgetBasePartService.Update(item.ToWidgetBasePart());

            return(base.Update(item, saveImmediately));
        }
        public override void Update(T item, bool saveImmediately = true)
        {
            WidgetBasePartService.Update(item.ToWidgetBasePart());

            base.Update(item, saveImmediately);
        }