public ApiKeyBase GetApiKeyBase() { ApiKeyBase res = new ApiKeyBase(); res.ApiKey = ApiKey; res.ConferenceId = ConferenceId; res.Expires = Expires; res.CreatedByUserID = CreatedByUserID; res.CreatedOnDate = CreatedOnDate; return(res); }
public void ReadApiKeyBase(ApiKeyBase apiKey) { if (!String.IsNullOrEmpty(apiKey.ApiKey)) { ApiKey = apiKey.ApiKey; } if (apiKey.ConferenceId > -1) { ConferenceId = apiKey.ConferenceId; } if (apiKey.Expires != null) { Expires = apiKey.Expires; } if (apiKey.CreatedByUserID > -1) { CreatedByUserID = apiKey.CreatedByUserID; } CreatedOnDate = apiKey.CreatedOnDate; }