public async Task <IReadOnlyList <AppleReadModel> > Get([FromQuery] GetAllApples query) { return(await _queryProcessor.QueryAsync(query)); }
public async Task <IActionResult> GetAllProduct(GetAllProducts query) { var products = await _queryProcessor.QueryAsync(query); return(Ok(products)); }