예제 #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);
        }