import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Config } from '../../_helpers/config.class'; @Injectable() export class DashboardService { constructor(private http: HttpClient) { } public getTopInStock() { return this.http.get(`${Config.getControllerUrl('DashboardApi', 'GetTopInStock')}`); } public getExpMed() { return this.http.get(`${Config.getControllerUrl('DashboardApi', 'GetExpiredMed')}`); } public getTopExpMed() { return this.http.get(`${Config.getControllerUrl('DashboardApi', 'GetTopExpInStock')}`); } public getCountsForDashboard () { return this.http.post(`${Config.getControllerUrl('Reporting', 'GetCountsForDashboard')}`,{ Id: 0}); } }