import { Service } from 'typedi' ; import { OrmRepository } from 'typeorm-typedi-extensions' ; import { Logger , LoggerInterface } from '../../decorators/Logger' ; import { ContactRepository } from '../repositories/ContactRepository' ; @ Service ( ) export class ContactService { constructor ( @ OrmRepository ( ) private contactRepository , @ Logger ( __filename ) private log ) { } public async create ( customer ) { this . log . info ( 'Create a Contact customer Infomation ' ) ; return this . contactRepository . save ( customer ) ; } }