Magnetization-orientation dependence of the superconducting transition temperature and magnetoresistance in the ferromagnet-superconductor-ferromagnet trilayer system