roles controller added

This commit is contained in:
2024-10-06 00:43:09 +02:00
Unverified
parent 70d47b3aea
commit 21098f1664
14 changed files with 401 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ public class GendersController : ControllerBase
[HttpDelete("{id}")]
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
[ProducesResponseType(typeof(GenderResponse), StatusCodes.Status204NoContent)]
[ProducesResponseType(StatusCodes.Status204NoContent)]
[ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)]
[ProducesResponseType(typeof(void), StatusCodes.Status403Forbidden)]
public async Task<ActionResult> DeleteGender([FromRoute]short id) => await _gendersControllerService.DeleteGender(id);