import { Injectable } from '@angular/core'; import { CoredataService } from '../../../core/coredata.service'; import { CommonEnum } from '../../../models/common-enum'; import { ProjectInformation } from '../../../models/building-project/project-information/project-information'; @Injectable({ providedIn: 'root' }) export class ProjectInformationService { public ProjectId: number; constructor(private coreData: CoredataService) { } //Save data SaveProjectInformation(modelProjectInformation: Array, success, error) { this.coreData.Post(CommonEnum.BuildingProjectAPP, CommonEnum.AccessoryExclusionZoneAPI, modelProjectInformation, (result) => { if (result != null) { return success(result); } return null; }, (error) => { return error(error); }); } }