public List <GradeList> GetGradeList(ReqGetGradeList data) { List <GradeList> ResultSet = new List <GradeList>(); using (IDbConnection connection = GetOpenConnection()) { try { var param = new DynamicParameters(); param.Add("@hashValue", data.hashValue); ResultSet = connection.Query <GradeList>("SP_GetGradeList", param, commandType: CommandType.StoredProcedure).ToList(); } catch (Exception ex) { throw ex; } finally { if (connection != null) { connection.Close(); } } } return(ResultSet); }
public ResponseInfo <RspGetGradeList> GetGradeList([FromBody] ReqGetGradeList data) { try { return(base.PostDataToAPINotAuth <ResponseInfo <RspGetGradeList> >(base.apiPathAndQuery, data)); } catch (Exception ex) { throw ex; } }
public ResponseInfo <RspGetGradeList> GetGradeList([FromBody] ReqGetGradeList data) { ResponseInfo <RspGetGradeList> res = new ResponseInfo <RspGetGradeList>(); try { res = process.GetGradeList(data); } catch (Exception ex) { throw ex; } return(res); }
public ResponseInfo <RspGetGradeList> GetGradeList(ReqGetGradeList data) { ResponseInfo <RspGetGradeList> response = new ResponseInfo <RspGetGradeList>(); try { response.ResponseData = new RspGetGradeList(); response.ResponseData.gradeList = SODAL.GetGradeList(data); } catch (Exception ex) { throw ex; } return(response); }