We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5993427 commit 49e6c73Copy full SHA for 49e6c73
src/Web/Api/Controllers/v1/Products/ProductController.cs
@@ -22,7 +22,7 @@ public async Task<ApiResult<ProductQueryModel>> GetByIdAsync([FromQuery] int pro
22
23
[HttpPost]
24
[SwaggerOperation("add a product")]
25
- public async Task<ApiResult<int>> AddAsync(AddProductRequest request)
+ public async Task<ApiResult<int>> AddAsync([FromBody] AddProductRequest request)
26
{
27
var command = Mapper.Map<AddProductRequest, AddProductCommand>(request);
28
0 commit comments