public async Task <IActionResult> UpdateProduct(int id, [FromBody] ProductDto productDto, [FromServices] UpdateProduct updateProduct) { return(Ok(await updateProduct.ExecAsync(id, productDto))); }