public string RemoveByZoneWidgetId(long zoneWidget)
        {
            var entity = _entityRepository.Get(zoneWidget);

            if (entity == null)
            {
                return("Error: No zone widget found");
            }
            _entityRepository.DeletePermanently(entity);
            _entityRepository.SaveChange();
            return("Success: Removed Successfully");
        }
예제 #2
0
        public NccWebSiteWidget Get(long entityId, bool isAsNoTracking = false)
        {
            var widget = _cache.GetNccWebSiteWidget(entityId);

            if (widget == null)
            {
                widget = _entityRepository.Get(entityId, isAsNoTracking);
                _cache.SetNccWebSiteWidget(widget);
            }
            return(widget);
        }
 public NccWebSiteWidget Get(long entityId, bool isAsNoTracking = false)
 {
     return(_entityRepository.Get(entityId, isAsNoTracking));
 }
 public NccWebSiteWidget Get(long entityId)
 {
     return(_entityRepository.Get(entityId));
 }