Refactor Ajax request for asks in controller into a service