public BasicResponse <JC_RegionOutageConfigInfo> AddJC_Regionoutageconfig(RegionOutageConfigAddRequest jC_Regionoutageconfigrequest)
        {
            var _jC_Regionoutageconfig      = ObjectConverter.Copy <JC_RegionOutageConfigInfo, JC_RegionoutageconfigModel>(jC_Regionoutageconfigrequest.JC_RegionOutageConfigInfo);
            var resultjC_Regionoutageconfig = _Repository.AddJC_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>(resultjC_Regionoutageconfig);
            return(jC_Regionoutageconfigresponse);
        }
        public BasicResponse <JC_RegionOutageConfigInfo> AddJC_Regionoutageconfig(RegionOutageConfigAddRequest jC_Regionoutageconfigrequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/RegionOutageConfig/AddJC_Regionoutageconfig?token=" + Token, JSONHelper.ToJSONString(jC_Regionoutageconfigrequest));

            return(JSONHelper.ParseJSONString <BasicResponse <JC_RegionOutageConfigInfo> >(responseStr));
        }
Example #3
0
 public BasicResponse <JC_RegionOutageConfigInfo> AddJC_Regionoutageconfig(RegionOutageConfigAddRequest jC_Regionoutageconfigrequest)
 {
     return(_regionOutageConfigService.AddJC_Regionoutageconfig(jC_Regionoutageconfigrequest));
 }