Exemplo n.º 1
0
 public ResponseInfo <RspConfigValue> GetSystemConfig([FromBody] ReqConfigValue data)
 {
     try
     {
         return(base.PostDataToAPINotAuth <ResponseInfo <RspConfigValue> >(base.apiPathAndQuery, data));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }