public async Task <List <ClinicalDetailsDatabaseModel> > GetClinicalDetailsByRequestId(int requestId) { var parameter = new RequestIdParameterModel() { AnalysisRequestId = requestId }; var storedProcedure = "[dbo].[usp_GetClinicalDetailsByRequestId]"; return(await LoadDataWithParameterAsync <ClinicalDetailsDatabaseModel, RequestIdParameterModel>(storedProcedure, parameter)); }
public async Task <List <ResultsDatabaseModel> > GetRequestedTestsByRequestIdAsync (int requestId) { var storedProcedure = "[dbo].[usp_GetTestWithResultsByRequestId]"; var parameter = new RequestIdParameterModel() { AnalysisRequestId = requestId }; return(await LoadDataWithParameterAsync <ResultsDatabaseModel, RequestIdParameterModel>(storedProcedure, parameter)); }