public async Task <GetProducts.Response> GetProductById([FromQuery] Guid productId)
        {
            GetProducts.Request request = new GetProducts.Request {
                ProductId = productId
            };

            return(await Handle(request));
        }
Beispiel #2
0
 public IActionResult GetProducts(
     [FromQuery] GetProducts.Request request) =>
 Ok(new GetProducts(_ctx).Do(request));