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