import { Injectable } from '@nestjs/common'; import { EnterpriseRepository } from '../repository/enterprise.repository'; import { EnterpriseData } from '../entity/enterprise.entity'; @Injectable() export class EnterpriseService { constructor(private readonly enterpriseRepository: EnterpriseRepository) {} async create(enterpriseData: EnterpriseData): Promise { return await this.enterpriseRepository.save(enterpriseData); } async update(enterpriseData: EnterpriseData): Promise { return await this.enterpriseRepository.update(enterpriseData); } }