public void OnActionExecuting(ActionExecutingContext context)
        {
            foreach (var argument in context.ActionArguments.Values.Where(v => v is EditGroupUserRequest))
            {
                EditGroupUserRequest command = argument as EditGroupUserRequest;

                _groupValidationService.RequireUsernameIsGroupMember(command.Username, command.GroupId);
            }
        }
Beispiel #2
0
        public IActionResult EditGroupUser(EditGroupUserRequest command)
        {
            _groupUserService.EditGroupUser(command.Username, command.Role, command.GroupId);

            return(NoContent());
        }