Beispiel #1
0
        public SplashDefinition GetSplashDefData()
        {
            SplashDefinition result = default(SplashDefinition);

            try
            {
                string registrationId = _globalOptionService.GetOptionContent(SettingConstant.RegistrationKey);
                string promoCode      = _globalOptionService.GetOptionContent(SettingConstant.PromoCodeKey);
                result = _softwareService.AgentSplashDefData(registrationId, promoCode);
                if (result != null && !result.SplashImage.IsEmpty())
                {
                    result.SplashImage = result.SplashImage.ConvertToImageUrl();
                }
            }
            catch (Exception ex)
            {
                _logService.LogException(ex);
            }

            return(result);
        }