public ResponseInfo <ResponseSODetails> GetdataSO(ReqDataByHash data) { ResponseInfo <ResponseSODetails> response = new ResponseInfo <ResponseSODetails>(); try { string reqParam = SODAL.AuthenCheckTokenURLExpire(data.hashParams); if (!string.IsNullOrEmpty(reqParam)) { string[] reqParams = reqParam.Split(','); response.ResponseData = new ResponseSODetails(); var listData = SODAL.GetSODetails(reqParams); response.ResponseData.sODetails = HelperUtil.GenerateSoDetailBase64String(listData); } else { response.ResponseCode = "99"; response.ResponseMsg = "HashParams expire or invalid"; } } catch (Exception ex) { throw ex; } return(response); }
public dynamic GetSurveyByHash(ReqDataByHash data) { dynamic response = null; try { string reqParam = SODAL.AuthenCheckTokenURLExpire(data.hashParams); if (!string.IsNullOrEmpty(reqParam)) { string[] reqParams = reqParam.Split(','); response = new RspSurveyList(); response.surveys = SODAL.GetSurveyByHash(reqParams); } else { response = new ErrorAuthen(); response.status = new StatusError(); response.status.code = "99"; response.status.message = "HashParams expire or invalid"; } } catch (Exception ex) { throw ex; } return(response); }
public dynamic GetDoByHash(ReqDataByHash data) { dynamic response = null; try { string reqParam = SODAL.AuthenCheckTokenURLExpire(data.hashParams); if (!string.IsNullOrEmpty(reqParam)) { string[] reqParams = reqParam.Split(','); response = new ResponseSODetails(); var listData = SODAL.GetDoByHash(reqParams); response.sODetails = HelperUtil.GenerateSoDetailBase64String(listData); } else { response = new ErrorAuthen(); response.status = new StatusError(); response.status.code = "99"; response.status.message = "HashParams expire or invalid"; } } catch (Exception ex) { throw ex; } return(response); }
public ResponseInfo <ResponseSODetails> GetSODetailsFromHash([FromBody] ReqDataByHash data) { try { return(base.PostDataToAPINotAuth <ResponseInfo <ResponseSODetails> >(base.apiPathAndQuery, data)); } catch (Exception ex) { throw ex; } }
public dynamic GetDoByHash([FromBody] ReqDataByHash data) { try { return(base.PostDataToAPINotAuth <dynamic>(base.apiPathAndQuery, data)); } catch (Exception ex) { throw ex; } }
public dynamic GetDoByHash([FromBody] ReqDataByHash data) { dynamic res = null; try { res = process.GetDoByHash(data); } catch (Exception ex) { throw ex; } return(res); }
public ResponseInfo <ResponseSODetails> GetSODetailsFromHash([FromBody] ReqDataByHash data) { ResponseInfo <ResponseSODetails> res = new ResponseInfo <ResponseSODetails>(); try { res = process.GetdataSO(data); } catch (Exception ex) { throw ex; } return(res); }