import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Config } from '../_helpers/config.class'; @Injectable() export class FileTrackingSystemService { constructor(private http: HttpClient) { } public getApplication(id: number, tracking: number) { return this.http.get(`${Config.getControllerUrl('Application', 'GetApplication')}/${id}/${tracking}`); } public getApplications(skip: number, pageSize: number, query: string, officeId: number, pending: boolean, typeId?: number, statusId?: number) { return this.http.post(`${Config.getControllerUrl('Application', 'GetInboxApplications')}`, { Skip: skip, PageSize: pageSize, officeId: officeId, Query: query, Pending: pending, Type_Id: typeId, Status_Id: statusId }); } public getOffices(isPending: boolean) { return this.http.get(`${Config.getControllerUrl('Application', 'GetInboxOffices')}/${isPending}`); } }