コード例 #1
0
 public async Task <IReadOnlyList <AppleReadModel> > Get([FromQuery] GetAllApples query)
 {
     return(await _queryProcessor.QueryAsync(query));
 }
コード例 #2
0
        public async Task <IActionResult> GetAllProduct(GetAllProducts query)
        {
            var products = await _queryProcessor.QueryAsync(query);

            return(Ok(products));
        }