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