Beispiel #1
0
        public QuoteResponse GetQuoteResponse(int?id)
        {
            QuoteResponse response = new QuoteResponse();

            if (id != null)
            {
                response.Quote = quoteRepository.GetQuoteAndQuoteDetail((int)id);
            }
            else
            {
                response.QuoteCount = quoteRepository.GetAll().Count() + 1;
            }

            //BaseData
            response.Contacts      = contactRepository.GetAll().ToList();
            response.Products      = productRepository.GetAll().ToList();
            response.ProductModels = productModelRepository.GetAll().ToList();
            response.Exclusions    = exclusionRepository.GetAll().ToList();


            return(response);
        }
 public IEnumerable <Exclusion> GetAllExclusions()
 {
     return(exclusionRepository.GetAll().ToList());
 }