public async Task <IActionResult> List([FromQuery] ListBusinessUnitFromQuery query) { var request = new ListBusinessUnitRequest(query); var result = await _apiResult.Produce(request); return(result); }
public ListBusinessUnitRequest(ListBusinessUnitFromQuery query) { _query = query ?? throw new ArgumentNullException(nameof(query)); }