import { HttpClient } from '@angular/common/http' ; import { Injectable } from '@angular/core' ; import { Params } from '../../../utils/params.service' ; @ Injectable ( ) export class EditArticleTypeService { constructor ( private http , private params ) { } public getArticleType ( id ) { return this . http . get ( '/articletype/' + id ) ; } public updateArticleType ( data ) { return this . http . put ( '/articletype/' + data . id , data ) ; } }