Ejemplo n.º 1
0
        /// <summary>
        /// Updates a review type
        /// </summary>
        /// <param name="item">Review type</param>
        public virtual void UpdateConstructionCapital(ConstructionCapital item)
        {
            if (item == null)
            {
                throw new ArgumentNullException(nameof(item));
            }

            _itemRepository.Update(item);
            _cacheManager.RemoveByPattern(GSCatalogDefaults.ConstructionCapitalByPatternKey);

            //event notification
            _eventPublisher.EntityUpdated(item);
        }
 public ConstructionCapitalModel PrepareConstructionCapitalModel(ConstructionCapitalModel model, ConstructionCapital item, bool excludeProperties = false)
 {
     if (item != null)
     {
         //fill in model values from the entity
         model = model ?? item.ToModel <ConstructionCapitalModel>();
     }
     return(model);
 }