Hello to everyone again!

Need help proving the following two identities:

1. The sum of the residuals weighted by the corresponding value of the regressor variable equals zero:

Sum xi*ei = 0

2. The sum of the residuals weighted by the corresponding fitted value equals zero:

Sum yi_hat*ei = 0

Thank you!