示例#1
0
            public async Task <PipelineResponse <ModelResponse> > Retrieve(ModelRequest input)
            {
                try
                {
                    var response = await _dbThing.GetModel(input);

                    return(PipelineResponse.Ok <ModelResponse>(response));
                }
                catch (Exception ex)
                {
                    return(PipelineResponse.Fail <ModelResponse>(ex, "Unhandled exception"));
                }
            }
            public async Task <PipelineResponse <ModelResponse> > Retrieve(ModelRequest input)
            {
                var result = await _dbThing.GetModel(input);

                return(PipelineResponse.Ok(result));
            }