public virtual GetAllModelsResponse GetAllModels()
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "RecommendationsService.GetAllModels",
                ApiKeys.RecommendationsRetryInSeconds,
                () =>
     {
         var result = RecommendationsRepository.GetAllModels();
         return result;
     },
                null));
 }
Пример #2
0
        public virtual GetAllModelsResponse GetAllModels()
        {
            try
            {
                var result = RecommendationsRepository.GetAllModels();

                return(result);
            }
            catch (Exception ex)
            {
                Logger.Error("RecommendationsService.GetAllModels failed", this, ex);
            }

            return(null);
        }