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); }
public CreateOperationalDepartmentRequest(CreateOperationalDepartmentFromQuery query, CreateOperationalDepartmentFromBody body) { _query = query ?? throw new ArgumentNullException(nameof(query)); _body = body ?? throw new ArgumentNullException(nameof(body)); }