private void UserTestPermission(int userTestId) { var userId = UserTestService.GetValues(userTestId, x => x.UserId); if (userId != AuthService.CurrentUser.UserID) { throw new PermissionException(); } }