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

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

            return(null);
        }