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); }
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); }
public List <QuoteSubsetModel> GetQuotesSubset(string state = "", string vehicleMake = "", string formerInsurer = "") { var result = _dataProvider.GetQuoteSubset(state, vehicleMake, formerInsurer); return(result); }