Skip to content

Commit 49e6c73

Browse files
get request data for addproduct endpint from body.
1 parent 5993427 commit 49e6c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Web/Api/Controllers/v1/Products/ProductController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async Task<ApiResult<ProductQueryModel>> GetByIdAsync([FromQuery] int pro
2222

2323
[HttpPost]
2424
[SwaggerOperation("add a product")]
25-
public async Task<ApiResult<int>> AddAsync(AddProductRequest request)
25+
public async Task<ApiResult<int>> AddAsync([FromBody] AddProductRequest request)
2626
{
2727
var command = Mapper.Map<AddProductRequest, AddProductCommand>(request);
2828

0 commit comments

Comments
 (0)