示例#1
0
        public async Task <IActionResult> Delete([FromRoute] DeleteFlowFromRoute route,
                                                 [FromQuery] DeleteFlowFromQuery query,
                                                 [FromHeader] DeleteFlowFromHeader header)
        {
            var request = new DeleteFlowRequest(route, query, header);

            var result = await _apiResult.Produce(request);

            return(result);
        }
 public DeleteFlowRequest(DeleteFlowFromRoute route, DeleteFlowFromQuery query, DeleteFlowFromHeader header)
 {
     _route  = route ?? throw new ArgumentNullException(nameof(route));
     _query  = query ?? throw new ArgumentNullException(nameof(query));
     _header = header ?? throw new ArgumentNullException(nameof(header));
 }