public async Task <IActionResult> GetPermissions(string name)
        {
            try
            {
                var permissions = await _permissionQueries.GetPermissionsAsync(name);

                return(Ok(permissions));
            }
            catch (KeyNotFoundException ex)
            {
                return(NotFound());
            }
            catch (ArgumentException argumentException)
            {
                return(BadRequest(argumentException.Message));
            }
        }
        public async Task <IActionResult> GetPermissions([FromQuery] string name)
        {
            var permissions = await _permissionQueries.GetPermissionsAsync(name);

            return(Ok(permissions));
        }