Exemplo n.º 1
0
        public BasicResponse <List <SettingInfo> > GetSettingList(SettingGetListRequest settingrequest)
        {
            var settingresponse = new BasicResponse <List <SettingInfo> >();

            settingrequest.PagerInfo.PageIndex = settingrequest.PagerInfo.PageIndex - 1;
            if (settingrequest.PagerInfo.PageIndex < 0)
            {
                settingrequest.PagerInfo.PageIndex = 0;
            }
            int rowcount          = 0;
            var settingModelLists = _Repository.GetSettingList(settingrequest.PagerInfo.PageIndex, settingrequest.PagerInfo.PageSize, out rowcount);
            var settingInfoLists  = new List <SettingInfo>();

            foreach (var item in settingModelLists)
            {
                var SettingInfo = ObjectConverter.Copy <SettingModel, SettingInfo>(item);
                settingInfoLists.Add(SettingInfo);
            }
            settingresponse.Data = settingInfoLists;
            return(settingresponse);
        }
Exemplo n.º 2
0
        public BasicResponse <List <SettingInfo> > GetSettingList(SettingGetListRequest settingrequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/Setting/GetPageList?token=" + Token, JSONHelper.ToJSONString(settingrequest));

            return(JSONHelper.ParseJSONString <BasicResponse <List <SettingInfo> > >(responseStr));
        }
Exemplo n.º 3
0
 public BasicResponse <List <SettingInfo> > GetSettingList(SettingGetListRequest settingrequest)
 {
     return(_settingService.GetSettingList(settingrequest));
 }