Пример #1
0
        public CreditsHero.Messaging.Dtos.SubscriberQuotesDto GetCustomerQuotes(GetSubscribersInput input)
        {
            GetQuotesInput inputQuote = new GetQuotesInput()
            {
                CompanyId       = input.CompanyId.Value,
                SubscriberRefId = input.SubscribersId.Value,
                QuoteStatus     = ""
            };

            CreditsHero.Messaging.Dtos.SubscriberQuotesDto results = new CreditsHero.Messaging.Dtos.SubscriberQuotesDto();
            return((CreditsHero.Messaging.Dtos.SubscriberQuotesDto)_creditsHeroConnect.CallCreditsHeroService <SubscriberQuotesDto>(results, inputQuote,
                                                                                                                                    "api/services/app/Quotes/GetSubscriberQuotesByStatus"));
        }
Пример #2
0
        public Dtos.SubscriberQuotesDto GetSubscriberQuotesByStatus(Dtos.GetQuotesInput input)
        {
            var subscriberQuotes = _subscriberQuoteRepository.GetSubscriberQuotesByStatus(input.SubscriberRefId, input.QuoteStatus);
            Dtos.SubscriberQuotesDto results = new Dtos.SubscriberQuotesDto();
            results.SubscriberQuotesList = new List<Dtos.SubscriberQuoteDto>();

            foreach (var item in subscriberQuotes)
                results.SubscriberQuotesList.Add(new Dtos.SubscriberQuoteDto
                {
                    CriteriaName = item.CriteriaName,
                    CriteriaValue = item.CriteriaValue,
                    InquiryCreationTime = item.InquiryCreationTime,
                    InquiryId = item.InquiryId,
                    QuoteCost = item.QuoteCost.ToString(),
                    QuoteId = item.QuoteId,
                    QuoteMessage = item.QuoteMessage,
                    QuoteStatus = item.QuoteStatus,
                    QuotesSubmitted = item.QuotesSubmitted,
                    RequestComment = item.RequestComment,
                    RequestEmail = item.RequestEmail,
                    RequestFullName = item.RequestFullName,
                    RequestSmsNumber = item.RequestSmsNumber,
                    SubscriberId = item.SubscriberId,
                    RequestId = item.RequestId
                });

            return results;
        }
 public CreditsHero.Messaging.Dtos.SubscriberQuotesDto GetMemberQuotes(GetSubscribersInput input)
 {
     GetQuotesInput inputQuote = new GetQuotesInput()
     {
         CompanyId = input.CompanyId.Value,
         SubscriberRefId = input.SubscribersId.Value,
         QuoteStatus = ""
     };
     CreditsHero.Messaging.Dtos.SubscriberQuotesDto results = new CreditsHero.Messaging.Dtos.SubscriberQuotesDto();
     return (CreditsHero.Messaging.Dtos.SubscriberQuotesDto)_creditsHeroConnect.CallCreditsHeroService<SubscriberQuotesDto>(results, inputQuote,
         "api/services/app/Quotes/GetSubscriberQuotesByStatus");
 }