I think this method should be in Api. If success it will return Promise.resolve, otherwise return Promise.reject