File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public CategoryController(IServiceProvider provider) : base(provider)
2626 /// </summary>
2727 [ Authorize ]
2828 [ HttpPost ]
29- [ SwaggerResponse ( StatusCodes . Status200OK , Type = typeof ( BaseResponse ) ) ]
29+ [ SwaggerResponse ( StatusCodes . Status201Created , Type = typeof ( BaseResponse ) ) ]
3030 [ SwaggerResponse ( StatusCodes . Status400BadRequest , Type = typeof ( BaseResponse ) ) ]
3131 [ SwaggerResponse ( StatusCodes . Status500InternalServerError , Type = typeof ( BaseResponse ) ) ]
3232 public async Task < IActionResult > CreateCategory ( [ FromBody ] CreateCategoryCommand command )
@@ -40,7 +40,7 @@ public async Task<IActionResult> CreateCategory([FromBody] CreateCategoryCommand
4040 Success = resp . Success ,
4141 Response = null ,
4242 ErrorMessage = resp . Message ,
43- Code = resp . Success ? 200 : 400
43+ Code = resp . Success ? 201 : 400
4444 } ;
4545 }
4646 ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public TaskController(IServiceProvider provider) : base(provider)
2626 /// </summary>
2727 [ Authorize ]
2828 [ HttpPost ]
29- [ SwaggerResponse ( StatusCodes . Status200OK , Type = typeof ( BaseResponse ) ) ]
29+ [ SwaggerResponse ( StatusCodes . Status201Created , Type = typeof ( BaseResponse ) ) ]
3030 [ SwaggerResponse ( StatusCodes . Status400BadRequest , Type = typeof ( BaseResponse ) ) ]
3131 [ SwaggerResponse ( StatusCodes . Status500InternalServerError , Type = typeof ( BaseResponse ) ) ]
3232 public async Task < IActionResult > CreateTask ( [ FromBody ] CreateTaskCommand command )
@@ -40,7 +40,7 @@ public async Task<IActionResult> CreateTask([FromBody] CreateTaskCommand command
4040 Success = resp . Success ,
4141 Response = null ,
4242 ErrorMessage = resp . Message ,
43- Code = resp . Success ? 200 : 400
43+ Code = resp . Success ? 201 : 400
4444 } ;
4545 }
4646 ) ;
You can’t perform that action at this time.
0 commit comments