Exemplo n.º 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>());
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 public override void Update(T item)
 {
     item.ExtendData = JsonConvert.SerializeObject(item);
     WidgetBasePartService.Update(item.ToWidgetBasePart());
     Signal.Trigger(CacheTrigger.WidgetChanged);
 }
Exemplo n.º 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>());
 }
Exemplo n.º 6
0
 public override void Update(T item, bool saveImmediately = true)
 {
     item.ExtendData = JsonConvert.SerializeObject(item);
     WidgetBasePartService.Update(item.ToWidgetBasePart(), saveImmediately);
 }
Exemplo n.º 7
0
        public override ServiceResult <T> Update(T item, bool saveImmediately = true)
        {
            WidgetBasePartService.Update(item.ToWidgetBasePart());

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

            base.Update(item, saveImmediately);
        }