示例#1
0
 public ResponseInfo <RspConfigValue> GetSystemConfig([FromBody] ReqConfigValue data)
 {
     try
     {
         return(base.PostDataToAPINotAuth <ResponseInfo <RspConfigValue> >(base.apiPathAndQuery, data));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
        public ResponseInfo <RspConfigValue> GetSystemConfig([FromBody] ReqConfigValue data)
        {
            ResponseInfo <RspConfigValue> res = new ResponseInfo <RspConfigValue>();

            try
            {
                res = process.GetSystemConfig(data);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(res);
        }
示例#3
0
        public ResponseInfo <RspConfigValue> GetSystemConfig(ReqConfigValue data)
        {
            ResponseInfo <RspConfigValue> response = new ResponseInfo <RspConfigValue>();

            try
            {
                response.ResponseData = new RspConfigValue();
                response.ResponseData.SystemConfValue = SysDAL.GetConfig(data.ConfCode);

                if (string.IsNullOrEmpty(response.ResponseData.SystemConfValue))
                {
                    response.ResponseCode = "01";
                    response.ResponseMsg  = "Don't have Configuration or Configuration isn't active";
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(response);
        }