public IActionResult Delete([FromBody] int id)
        {
            if (_securityManager.GetPermissionById(id) == null)
            {
                return(BadRequest("Permission not found"));
            }

            if (_securityManager.DeletePermission(id))
            {
                return(Ok());
            }

            return(BadRequest());
        }