public void Delete(int id) { Models.ExternalLogin ExternalLogin = _ExternalLoginRepository.GetExternalLogin(id); if (ExternalLogin != null && ExternalLogin.ModuleId == _entityId) { _ExternalLoginRepository.DeleteExternalLogin(id); _logger.Log(LogLevel.Information, this, LogFunction.Delete, "ExternalLogin Deleted {ExternalLoginId}", id); } }