コード例 #1
0
        public async Task <IActionResult> Delete([FromRoute] DeleteOperationFromRoute route,
                                                 [FromQuery] DeleteOperationFromQuery query,
                                                 [FromHeader] DeleteOperationFromHeader header)
        {
            var request = new DeleteOperationRequest(route, query, header);

            var result = await _apiResult.Produce(request);

            return(result);
        }
コード例 #2
0
 public DeleteOperationRequest(DeleteOperationFromRoute route, DeleteOperationFromQuery query, DeleteOperationFromHeader header)
 {
     _route  = route ?? throw new ArgumentNullException(nameof(route));
     _query  = query ?? throw new ArgumentNullException(nameof(query));
     _header = header ?? throw new ArgumentNullException(nameof(header));
 }