public async Task <IActionResult> Find([FromQuery] MaterialsQueryResource queryResource) { var materialsQuery = _mapper.Map <MaterialsQueryResource, MaterialsQuery>(queryResource); var materialsQueryResult = await _materials.FindAsync(materialsQuery); var resource = _mapper.Map <QueryResult <Material>, QueryResultResource <Material> >(materialsQueryResult); return(Ok(resource)); }