Implementing get by id and get all template methods