コード例 #1
0
        public async Task <IActionResult> Create([FromQuery] CreateOperationalDepartmentFromQuery query,
                                                 [FromBody] CreateOperationalDepartmentFromBody body)
        {
            var request = new CreateOperationalDepartmentRequest(query, body);

            var result = await _apiResult.Produce(request);

            return(result);
        }
コード例 #2
0
 public CreateOperationalDepartmentRequest(CreateOperationalDepartmentFromQuery query, CreateOperationalDepartmentFromBody body)
 {
     _query = query ?? throw new ArgumentNullException(nameof(query));
     _body  = body ?? throw new ArgumentNullException(nameof(body));
 }