Created service for API calls for action creators.