13 lines
377 B
TypeScript
13 lines
377 B
TypeScript
import { Injectable } from "@nestjs/common";
|
|
import { IOrganization } from "../contracts/models/organization";
|
|
import { Organization } from "../models/organization";
|
|
|
|
@Injectable()
|
|
export class OrganizationFactoryService {
|
|
createFromName(name: string): IOrganization {
|
|
const organization = new Organization();
|
|
organization.name = name;
|
|
return organization;
|
|
}
|
|
}
|