/// <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); }
public static Port ToEntity(this PortModel model, Port destination) { return Mapper.Map(model, destination); }