public ConnectorEvent ChannelEntityDeleted(Entity channel, Entity deletedEntity) { string channelName = _mappingHelper.GetNameForEntity(channel, 100); ConnectorEvent connectorEvent = ConnectorEventHelper.InitiateEvent(_config, ConnectorEventType.ChannelEntityDeleted, $"Received entity deleted for entity {deletedEntity.Id} in channel {channelName}.", 0); Delete(channel, deletedEntity); _epiApi.DeleteCompleted(channelName, DeleteCompletedEventType.EntitiyDeleted); return(connectorEvent); }