blob: 99e5a3944044b6097aa065052ea3b770b0cdbe4d [file] [log] [blame]
import { Injectable } from '@angular/core';
import { PersonType } from '@shared/models';
@Injectable()
export class PersonTypesService {
static gridAdapter(response: any): Array<PersonType> {
return response.map(personType => new PersonType(personType));
}
static itemAdapter(response: any): PersonType {
return new PersonType(response);
}
}