public ActionResult Index()
        {
            try
            {
                ViewData["CustomerName"] = CustomerName();
                ViewData["WeixinUser"]   = WeiXinUser();
                var customerId = CustomerId().ToString();
                LogManager.GetLogger().Info("customerId:" + customerId);

                var cities =
                    DestinationBase.FindByList(destinationTypeIds: ConstValue.Catalog.DestinationType.City.ToString());
                var uId = CacheHelper.Get(OpenId());
                if (null != cities && cities.Any())
                {
                    cities =
                        cities.Where(
                            p =>
                            (null != p.Parent && p.Parent.Name.Equals("中国")) ||
                            (null != p.Parent && null != p.Parent.Parent && p.Parent.Parent.Name.Equals("中国")))
                        .ToList();
                }
                ViewData["Cities"] = cities;
                LogManager.GetLogger().Info("JoinUs-uId:" + uId);
            }
            catch (Exception ex)
            {
                LogManager.GetLogger().Error(ex);
            }
            return(View());
        }
        public ActionResult LineList(int?suitableTypeId = null, int?productCategoryId = null, int?destId = null)
        {
            try
            {
                ViewData["CustomerName"] = CustomerName();
                ViewData["WeixinUser"]   = WeiXinUser();
                var customerId = CustomerId().ToString();
                LogManager.GetLogger().Info("customerId:" + customerId);

                var productLines = ProductLine.FindByList(suitableTypeId: suitableTypeId,
                                                          productCategoryId: productCategoryId);
                if (null != productLines && null != destId)
                {
                    productLines =
                        productLines.Where(p => null != p.LineDests && p.LineDests.Any(l => l.Id == destId.Value))
                        .ToList();
                }

                ViewData["ProductLines"] = productLines;
                ViewData["CustomerId"]   = customerId;

                ViewData["CustomerBase"] = CustomerBase.FindById(int.Parse(customerId));

                ViewData["SuitableTypeId"]    = suitableTypeId ?? 0;
                ViewData["ProductCategoryId"] = productCategoryId ?? 0;
                ViewData["DestId"]            = destId ?? 0;

                ViewData["ProductCategories"] = DictionaryBase.FindByList(ConstValue.Catalog.ProductCategoryId, true);
                ViewData["DestinationBases"]  =
                    DestinationBase.FindByList(
                        destinationTypeIds: ConstValue.Catalog.DestinationType.Continent.ToString());
            }
            catch (Exception ex)
            {
                LogManager.GetLogger().Error(ex);
            }
            return(View());
        }