private async Task ValidateUserId(CreateAccountCommand request) { var userEntity = await _userReadRepository.GetUserByUserIdAsync(request._Account.UserId); if (userEntity == null) { throw new BadRequestException("User doesn't exist"); } if (userEntity.MonthlyIncome - userEntity.MonthlyExpense < 1000) { throw new BadRequestException("User is in-eligible to have an account"); } }