Example #1
0
        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);
        }
Example #2
0
 public ResponseInfo <RspGetGradeList> GetGradeList([FromBody] ReqGetGradeList data)
 {
     try
     {
         return(base.PostDataToAPINotAuth <ResponseInfo <RspGetGradeList> >(base.apiPathAndQuery, data));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
        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);
        }
Example #4
0
        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);
        }