A general approach to the convergence theorems of generalized sampling series