예제 #1
0
        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));
        }
예제 #2
0
        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));
        }