Esempio n. 1
0
        /// <summary>
        /// Deletes a port
        /// </summary>
        /// <param name="port">The port</param>
        public virtual void Delete(Port port)
        {
            Guard.IsNotNull(port, "port");

            this.dataRepository.Delete(port);

            this.cacheManager.RemoveByPattern(PORTS_PATTERN_KEY);

            //event notification
            this.eventPublisher.EntityDeleted(port);
        }
Esempio n. 2
0
 public static Port ToEntity(this PortModel model, Port destination)
 {
     return Mapper.Map(model, destination);
 }