//[Authorize(Roles = AppRoles.HANDLE_LAB_CAPACITY + "," + AppRoles.REQUEST_TEST)] public async Task <IHttpActionResult> ReceiveRDTResults([FromBody] ReceiveRDTResultsRequestArgs requestArgs) { if (requestArgs == null) { return(InvalidRequest("Please provide required parameters.")); } var result = await _rdtService.ReceiveRDTResultsAsync(requestArgs); return(Ok(result)); }
public async Task <ReceiveRDTResultsReceiveResult> ReceiveRDTResultsAsync(ReceiveRDTResultsRequestArgs request) { await DbContext.ExecuteReaderAsync(DataConstants.PR_RDT_RECEIVE_RESULTS, CommandType.StoredProcedure, args => { args.Add("@TestID", request.RequestID); args.Add("@TestFlowType", request.TestFlowType); args.Add("@TVP_RDTScore", request.ToTVPRDTScore()); }); return(new ReceiveRDTResultsReceiveResult() { Success = "True" }); }
public async Task <ReceiveRDTResultsReceiveResult> ReceiveRDTResultsAsync(ReceiveRDTResultsRequestArgs args) { return(await rdtRepository.ReceiveRDTResultsAsync(args)); }