Here I reworked the Get a Single Volunteer to have the database logic refactored out of the controller. This way you have a single function responsible for getting the volunteer and setting up the object accordingly. Then the controller just worries about the HTTP request.
Here I reworked the Get a Single Volunteer to have the database logic refactored out of the controller. This way you have a single function responsible for getting the volunteer and setting up the object accordingly. Then the controller just worries about the HTTP request.