File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ It should also handle how the response data should be presented.
3737/// </summary >
3838 [Authorize ]
3939[HttpPost ]
40- [SwaggerResponse (StatusCodes .Status200OK , Type = typeof (BaseResponse ))]
40+ [SwaggerResponse (StatusCodes .Status201Created , Type = typeof (BaseResponse ))]
4141[SwaggerResponse (StatusCodes .Status400BadRequest , Type = typeof (BaseResponse ))]
4242[SwaggerResponse (StatusCodes .Status500InternalServerError , Type = typeof (BaseResponse ))]
4343public async Task < IActionResult > CreateCategory ([FromBody ] CreateCategoryCommand command )
@@ -51,7 +51,7 @@ public async Task<IActionResult> CreateCategory([FromBody] CreateCategoryCommand
5151 Success = resp .Success ,
5252 Response = null ,
5353 ErrorMessage = resp .Message ,
54- Code = resp .Success ? 200 : 400
54+ Code = resp .Success ? 201 : 400
5555 };
5656 }
5757 );
You can’t perform that action at this time.
0 commit comments