Exemple #1
0
 public static List <RecommendationTypeDTO> GetRecTypeList(string catalogID)
 {
     try
     {
         using (_certonaService = new CertonaServiceClient())
         {
             try
             {
                 UserDTO user    = FormsAuthenticationWrapper.User;
                 var     request = new GetRecommendationTypesRequest()
                 {
                     User = user, CatalogID = catalogID
                 };
                 var response = _certonaService.GetRecommendationTypes(request);
                 return(response.RecommendationTypes);
             }
             catch (TimeoutException exception)
             {
                 _certonaService.Abort();
                 throw;
             }
             catch (CommunicationException exception)
             {
                 _certonaService.Abort();
                 throw;
             }
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }