Esempio n. 1
0
        public List <string> Get()
        {
            var data   = _dataProvider.GetQuoteSubset();
            var result = (from item in data
                          where item.FormerInsurer != string.Empty
                          orderby item.FormerInsurer
                          select item.FormerInsurer).Distinct(StringComparer.CurrentCultureIgnoreCase).ToList();

            result.Insert(0, string.Empty);
            return(result);
        }
Esempio n. 2
0
        public List <string> Get()
        {
            var data = _dataProvider.GetQuoteSubset();

            var result = (from quotes in data
                          where quotes.Vehicles.Count > 0
                          from v in quotes.Vehicles
                          orderby v.Make
                          where v.Make != null
                          select v.Make).Distinct(StringComparer.CurrentCultureIgnoreCase).ToList();

            result.Insert(0, string.Empty);
            return(result);
        }
Esempio n. 3
0
        public List <QuoteSubsetModel> GetQuotesSubset(string state = "", string vehicleMake = "", string formerInsurer = "")
        {
            var result = _dataProvider.GetQuoteSubset(state, vehicleMake, formerInsurer);

            return(result);
        }