public List <MolecularLabReport> RetrieveMolecularTestResultsReport(MolecularLabBloodReportRequest rData) { string stProc = FetchSubjectsForBabyBloodTestReport; var pList = new List <SqlParameter>() { new SqlParameter("@MolecularLabId", rData.molecularLabId), new SqlParameter("@FromDate", rData.fromDate), new SqlParameter("@ToDate", rData.toDate), }; var allReceivedSubject = UtilityDL.FillData <MolecularLabReport>(stProc, pList); return(allReceivedSubject); }
public MolecularLabTestReportResponse RetrieveSubjectsForTestReports(MolecularLabBloodReportRequest rData) { try { _logger.LogInformation($"Invoking endpoint: {this.HttpContext.Request.GetDisplayUrl()}"); _logger.LogDebug($"Received subject for molecular test reports - {JsonConvert.SerializeObject(rData)}"); var subjects = _molecularLabService.RetrieveMolecularTestResultsReport(rData); return(subjects.Count == 0 ? new MolecularLabTestReportResponse { Status = "true", Message = "No subjects found", data = new List <MolecularLabReport>() } : new MolecularLabTestReportResponse { Status = "true", Message = string.Empty, data = subjects }); } catch (Exception e) { return(new MolecularLabTestReportResponse { Status = "false", Message = e.Message, data = null }); } }
public List <MolecularLabReport> RetrieveMolecularTestResultsReport(MolecularLabBloodReportRequest rData) { var allSubject = _molecularLabReceiptData.RetrieveMolecularTestResultsReport(rData); return(allSubject); }