public async Task <IHttpActionResult> GetMarkerTestData([FromUri] GetMarkerTestDataRequestArgs args) { if (args == null) { return(InvalidRequest("Please provide required parameters.")); } var data = await _markerTestDataService.GetMasterTestDataAsync(args); return(Ok(data)); }
public async Task <DataTable> GetMasterTestDataAsync(GetMarkerTestDataRequestArgs requestArgs) { var ds = await DbContext.ExecuteDataSetAsync(DataConstants.PR_S2S_GET_MARKER_TEST_DATA, CommandType.StoredProcedure, args => { args.Add("@TestID", requestArgs.TestID); args.Add("@MaterialID", requestArgs.MaterialID); }); return(ds.Tables[0]); }
public Task <DataTable> GetMasterTestDataAsync(GetMarkerTestDataRequestArgs requestArgs) { return(_markerTestDataRepository.GetMasterTestDataAsync(requestArgs)); }