implement service and use post and get method