import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Config } from '../../_helpers/config.class'; @Injectable() export class RegisterService { constructor(private http: HttpClient) { } registerStepOne(user: any) { return this.http.post(`${Config.getControllerUrl('Account')}/signup`, user); } verifySmsCode(user: any) { return this.http.post(`${Config.getControllerUrl('Account')}/validatephone`, user); } register(user: any) { return this.http.post(`${Config.getControllerUrl('Account')}/Register`, user); } changePassword(passwordInfo: any){ return this.http.post(`${Config.getControllerUrl('Account')}/changepassword`, passwordInfo); } }