Using this.ajax inside a model