call api from action method