function to return templates details provided hotel id and another function to return rooms details provided template id.