Example #1
0
        public ServiceResult <Dictionary <string, List <string> > > Get()
        {
            var result = new ServiceResult <Dictionary <string, List <string> > >();

            var cpt = new CountryComponent();

            var dic = cpt.GetCustomerService(this.IsZH());

            var CustomerServices = new MasterSettingComponent().GetSettingByGroupName("CustomerService");

            if (CustomerServices != null)
            {
                foreach (var masterSetting in CustomerServices)
                {
                    dic.Add(masterSetting.Name, new List <string> {
                        masterSetting.Value
                    });
                }
            }

            result.Data = dic;

            result.Successful();
            return(result);
        }
Example #2
0
        public ServiceResult <Dictionary <string, List <string> > > CustomerService()
        {
            var result = new ServiceResult <Dictionary <string, List <string> > >();

            var cpt = new CountryComponent();
            var dic = cpt.GetCustomerService(IsZH());

            result.Data = dic;
            return(result);
        }