public IResponse <ApiResponse> GetResultByRegId(ExamResultPostData objExamResultPostData) { string Result = null; Result = this.objExamResultService.GetResultByRegistrationNo(objExamResultPostData); return(null);// Json(Result); }
public string GetResultByRegistrationNo(ExamResultPostData objExamResultPostData) { string ResultSet = null; DbParam[] param = new DbParam[] { new DbParam(objExamResultPostData.RegistrationNo, typeof(System.String), "_registrationNo"), new DbParam(userDetail.schooltenentId, typeof(System.String), "_tenentUid"), new DbParam(objExamResultPostData.AcedimicYearFrom, typeof(System.Int32), "_academicYear"), new DbParam(objExamResultPostData.ExamId, typeof(System.Int32), "_examId"), }; string ProcessingStatue = string.Empty; DataSet ds = db.GetDataset("sp_AcademicExamResult_GetByRegNo", param, true, ref ProcessingStatue); if (ds != null && ds.Tables[0].Rows.Count > 0) { ResultSet = JsonConvert.SerializeObject(ds); } return(ResultSet); }