@@ -38,7 +38,7 @@ public async Task<IActionResult> CreateCategory([FromBody] CreateCategoryCommand
3838 return new ( )
3939 {
4040 Success = resp . Success ,
41- Response = null ,
41+ Data = null ,
4242 ErrorMessage = resp . Message ,
4343 Code = resp . Success ? 201 : 400
4444 } ;
@@ -63,7 +63,7 @@ public async Task<IActionResult> UpdateCategory([FromBody] UpdateCategoryCommand
6363 return new ( )
6464 {
6565 Success = resp . Success ,
66- Response = null ,
66+ Data = null ,
6767 ErrorMessage = resp . Message ,
6868 Code = resp . Success ? 200 : 400
6969 } ;
@@ -79,7 +79,7 @@ public async Task<IActionResult> UpdateCategory([FromBody] UpdateCategoryCommand
7979 [ SwaggerResponse ( StatusCodes . Status200OK , Type = typeof ( BaseResponse ) ) ]
8080 [ SwaggerResponse ( StatusCodes . Status400BadRequest , Type = typeof ( BaseResponse ) ) ]
8181 [ SwaggerResponse ( StatusCodes . Status500InternalServerError , Type = typeof ( BaseResponse ) ) ]
82- public async Task < IActionResult > DeleteCategory ( [ FromBody ] DeleteCategoryCommand command )
82+ public async Task < IActionResult > DeleteCategory ( [ FromQuery ] DeleteCategoryCommand command )
8383 {
8484 return await HandleApplicationResponse < Operation > (
8585 command ,
@@ -88,7 +88,7 @@ public async Task<IActionResult> DeleteCategory([FromBody] DeleteCategoryCommand
8888 return new ( )
8989 {
9090 Success = resp . Success ,
91- Response = null ,
91+ Data = null ,
9292 ErrorMessage = resp . Message ,
9393 Code = resp . Success ? 200 : 400
9494 } ;
@@ -113,7 +113,7 @@ public async Task<IActionResult> GetCategory([FromQuery] GetCategoryQuery query)
113113 return new ( )
114114 {
115115 Success = resp . Success ,
116- Response = resp . Content ,
116+ Data = resp . Content ,
117117 ErrorMessage = resp . Message ,
118118 Code = resp . Success ? 200 : 400
119119 } ;
@@ -138,7 +138,7 @@ public async Task<IActionResult> GetAll([FromQuery] GetAllCategoriesQuery query)
138138 return new ( )
139139 {
140140 Success = resp . Success ,
141- Response = resp . Content ,
141+ Data = resp . Content ,
142142 ErrorMessage = resp . Message ,
143143 Code = resp . Success ? 200 : 400
144144 } ;
0 commit comments