public BasicResponse <JC_RegionOutageConfigInfo> UpdateJC_Regionoutageconfig(RegionOutageConfigUpdateRequest jC_Regionoutageconfigrequest)
        {
            var _jC_Regionoutageconfig = ObjectConverter.Copy <JC_RegionOutageConfigInfo, JC_RegionoutageconfigModel>(jC_Regionoutageconfigrequest.JC_RegionOutageConfigInfo);

            _Repository.UpdateJC_Regionoutageconfig(_jC_Regionoutageconfig);
            if (Basic.Framework.Data.PlatRuntime.Items.ContainsKey(DataContract.UserRoleAuthorize.KeyConst.RegionOutageChangedKey))
            {
                Basic.Framework.Data.PlatRuntime.Items[DataContract.UserRoleAuthorize.KeyConst.RegionOutageChangedKey] = DateTime.Now;
            }
            else
            {
                Basic.Framework.Data.PlatRuntime.Items.Add(DataContract.UserRoleAuthorize.KeyConst.RegionOutageChangedKey, DateTime.Now);
            }
            var jC_Regionoutageconfigresponse = new BasicResponse <JC_RegionOutageConfigInfo>();

            jC_Regionoutageconfigresponse.Data = ObjectConverter.Copy <JC_RegionoutageconfigModel, JC_RegionOutageConfigInfo>(_jC_Regionoutageconfig);
            return(jC_Regionoutageconfigresponse);
        }
        public BasicResponse <JC_RegionOutageConfigInfo> UpdateJC_Regionoutageconfig(RegionOutageConfigUpdateRequest jC_Regionoutageconfigrequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/RegionOutageConfig/UpdateJC_Regionoutageconfig?token=" + Token, JSONHelper.ToJSONString(jC_Regionoutageconfigrequest));

            return(JSONHelper.ParseJSONString <BasicResponse <JC_RegionOutageConfigInfo> >(responseStr));
        }
Пример #3
0
 public BasicResponse <JC_RegionOutageConfigInfo> UpdateJC_Regionoutageconfig(RegionOutageConfigUpdateRequest jC_Regionoutageconfigrequest)
 {
     return(_regionOutageConfigService.UpdateJC_Regionoutageconfig(jC_Regionoutageconfigrequest));
 }