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));
        }
Exemplo n.º 2
0
        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]);
        }
Exemplo n.º 3
0
 public Task <DataTable> GetMasterTestDataAsync(GetMarkerTestDataRequestArgs requestArgs)
 {
     return(_markerTestDataRepository.GetMasterTestDataAsync(requestArgs));
 }